#7E238C#7E238C

#7E238C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.176 H 322.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7E238C
RGBrgb(126, 35, 140)
HSLhsl(292, 60%, 34%)
HSVhsv(292, 75%, 55%)
CMYKcmyk(10%, 75%, 0%, 45.1%)
CIE-LABlab(32.99, 52.51, -38.86)
CIE-LCHlch(32.99, 65.33, 323.50°)
OKLaboklab(44.54% 0.1389 -0.1086)
OKLCHoklch(44.54% 0.176 322)
XYZxyz(13.9383, 7.5319, 25.5255)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E238C #318C23
analogous
#4A238C #7E238C #8C2366
triadic
#7E238C #8C7E23 #238C7E
tetradic
#7E238C #8C4A23 #318C23 #23668C
square
#7E238C #8C4A23 #318C23 #23668C
split-complementary
#7E238C #668C23 #238C4A
monochromatic
#260B2A #52175B #7E238C #AA2FBD #C355D4

Accessibility & contrast

On white

8.38
#7E238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E238C
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E238C#FFFFFF#000000##FFFFFF
##7E238C1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#32518A
Tritanopia (blue-blind)
#7F3756
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e238c;
/* rgb */ color: rgb(126, 35, 140);
/* oklch */ color: oklch(44.5% 0.176 322.0);
Tailwind
colors: {
  custom: {
    50: '#a768ae',
    500: '#7e238c',
    950: '#000000',
  },
}
SCSS
$custom: #7e238c;
$custom-light: #a768ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e238c",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 292,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44536,
    "c": 0.17635,
    "h": 322
  },
  "luminance": 0.07531
}

Semantic roles & 50–950 ramp

primary
#7E238C
secondary
#60B852
accent
#E3455A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E238C

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

Preview Lab → · Contrast checker → · Palette generator →

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