#7E237B#7E237B

#7E237B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.162 H 329.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#7E237B
RGBrgb(126, 35, 123)
HSLhsl(302, 57%, 32%)
HSVhsv(302, 72%, 49%)
CMYKcmyk(0%, 72.2%, 2.4%, 50.6%)
CIE-LABlab(31.96, 49.42, -29.90)
CIE-LCHlch(31.96, 57.76, 328.83°)
OKLaboklab(43.47% 0.1392 -0.0826)
OKLCHoklch(43.47% 0.162 329.3)
XYZxyz(12.7803, 7.0687, 19.4263)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E237B #237E26
analogous
#54237E #7E237B #7E234E
triadic
#7E237B #7B7E23 #237B7E
tetradic
#7E237B #7E5423 #237E26 #234E7E
square
#7E237B #7E5423 #237E26 #234E7E
split-complementary
#7E237B #4E7E23 #237E54
monochromatic
#1E081D #4E164C #7E237B #AE30AA #CE4ECA

Accessibility & contrast

On white

8.70
#7E237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E237B
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E237B#FFFFFF#000000##FFFFFF
##7E237B1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437D
Deuteranopia (green-blind)
#3D4F79
Tritanopia (blue-blind)
#832F4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e237b;
/* rgb */ color: rgb(126, 35, 123);
/* oklch */ color: oklch(43.5% 0.162 329.3);
Tailwind
colors: {
  custom: {
    50: '#a667a1',
    500: '#7e237b',
    950: '#000000',
  },
}
SCSS
$custom: #7e237b;
$custom-light: #a667a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e237b",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 301.978,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43472,
    "c": 0.16187,
    "h": 329.3
  },
  "luminance": 0.07068
}

Semantic roles & 50–950 ramp

primary
#7E237B
secondary
#4CB050
accent
#E04D48
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E237B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#7E237B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva