RAL Classic color

RAL 4008 Signal violet #924E7D

RAL 4008 Signal violet is shown here as #924E7D, a widely published sRGB approximation of the printed swatch. It is a soft magenta in the pink family. In OKLCH it sits at lightness 0.521, chroma 0.109 and hue 340.0°. The nearest CSS named color is mediumvioletred (#C71585), ΔE2000 10.9 away.

Relative luminance
0.1304
OKLCH L · C · h
0.521 · 0.109 · 340.0
Best text
White 5.82:1
Hue family
Pink

#924E7D color codes

HEX
#924E7D
RGB
rgb(146, 78, 125)
HSL
hsl(319, 30%, 44%)
OKLCH
oklch(0.521 0.109 340.0)
OKLab
oklab(0.521 0.103 -0.038)
CIELAB (D65)
L* 42.83, a* 35.05, b* -14.04
XYZ (D65)
X 18.28, Y 13.04, Z 20.95
CMYK (naive)
cmyk(0%, 47%, 14%, 43%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #924E7D accessible?

White text on it reaches 5.82:1, passing AA. Black text manages only 3.60:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    3.60:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +25
  • White text on it

    5.82:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −84
  • As text on black

    3.60:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −22
  • As text on white

    5.82:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +78

Nearest versions that pass 4.5:1

  • For text on white

    #924E7D 5.82:1

    It already reaches 5.82:1 on white, so no change is needed.

  • For text on black

    #A35E8D 4.54:1

    Lightening its OKLCH lightness from 0.52 to 0.58 reaches 4.54:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #924E7D live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #924E7D

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #924E7D sits at step 600.

  1. 50#FFF0F9
    White
    1.10
    Black
    19.08
  2. 100#FFE1F4
    White
    1.21
    Black
    17.32
  3. 200#FFC2EA
    White
    1.48
    Black
    14.15
  4. 300#EBA4D3
    White
    1.94
    Black
    10.78
  5. 400#CE86B7
    White
    2.72
    Black
    7.71
  6. 500#B26B9B
    White
    3.83
    Black
    5.46
  7. 600This color#924E7D
    White
    5.82
    Black
    3.60
  8. 700#7E3E6B
    White
    7.53
    Black
    2.78
  9. 800#612750
    White
    10.96
    Black
    1.91
  10. 900#441137
    White
    15.20
    Black
    1.38
  11. 950#2C0121
    White
    18.52
    Black
    1.13

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #924E7D can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.227; #924E7D uses 48% of it. Display P3, which many recent phones and laptops show, reaches 0.252 there: 11% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.109
sRGB edge
0.227
Display P3 edge
0.252
Rec. 2020 edge
0.294
Dominant wavelength
Complementary 520 nm
Excitation purity
37%
Chromaticity
x 0.3497, y 0.2495
  • This color#924E7D
  • Most vivid in sRGB#B50091
  • Most vivid in Display P3oklch(0.521 0.252 340.0)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #924e7d;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.6708 0 0.5665); }
}

Mixing

Mixing #924E7D

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#C9A7BE
  • OKLab50%#CAA4BC
  • OKLCH50%#CAA4BC

Black #000000

  • sRGB50%#49273F
  • OKLab50%#35192C
  • OKLCH50%#35192C

Its complement #197C53

  • sRGB50%#566568
  • OKLab50%#696969
  • OKLCH50%#316CA5
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #924e7d, white);
color: color-mix(in oklch, #924e7d 50%, white);

In use

#924E7D in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:15.82:1 Passes
  • Link and body-size textText, 4.5:15.82:1 Passes
  • Large headingLarge text, 3:15.82:1 Passes
  • Icons, borders and focus ringsNon-text, 3:15.82:1 Passes

Dark page

  • Button labelText, 4.5:15.82:1 Passes
  • Link and body-size textText, 4.5:13.21:1 Fails
  • Large headingLarge text, 3:13.21:1 Passes
  • Icons, borders and focus ringsNon-text, 3:13.21:1 Passes

For text on this page, the nearest shade that passes is #AC6595 4.50:1

Color vision

How #924E7D looks with color blindness

Achromatopsia changes it most, ΔE2000 23.2; tritanopia changes it least, 10.3.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #515E7F ΔE2000 21.9

    Distinct

    Reads as muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #63697B ΔE2000 21.0

    Distinct

    Reads as grayish blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #994F60 ΔE2000 10.3

    Distinct

    Reads as muted pink

  • Achromatopsia

    No cone color vision; lightness only

    #656565 ΔE2000 23.2

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #197C53. Their lightness contrast is only 1.12:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#924E7D · #197C5343.6Stays distinct
Protanopia#515E7F · #7A725131.0Stays distinct
Deuteranopia#63697B · #6E695619.2Stays distinct
Tritanopia#994F60 · #007B7150.0Stays distinct
Achromatopsia#656565 · #6D6D6D3.0Easily confused

Harmony

Color harmonies for #924E7D

Its complement is #197C53, a soft green, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#924E7D
  • Complement#197C53

Complementary

Open in Harmony Studio
  • −30°#7D5698
  • Base#924E7D
  • +30°#9D4C5B
  • Base#924E7D
  • +120°#786A00
  • +240°#00758F
  • Base#924E7D
  • +150°#54752B
  • +210°#007975

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-4008: #924e7d;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-4008': '#924e7d',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-4008: oklch(0.521 0.109 340.0);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-4008": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.5725, 0.3059, 0.4902],
        "hex": "#924e7d"
      },
      "$description": "RAL 4008 Signal violet (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral4008 = Color(.sRGB, red: 0.573, green: 0.306, blue: 0.490, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral4008 = Color(0xFF924E7D)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #924E7D in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.