#7E238B#7E238B

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

Color values

HEX#7E238B
RGBrgb(126, 35, 139)
HSLhsl(293, 60%, 34%)
HSVhsv(293, 75%, 55%)
CMYKcmyk(9.4%, 74.8%, 0%, 45.5%)
CIE-LABlab(32.92, 52.32, -38.34)
CIE-LCHlch(32.92, 64.87, 323.77°)
OKLaboklab(44.47% 0.139 -0.1071)
OKLCHoklch(44.47% 0.175 322.4)
XYZxyz(13.8649, 7.5026, 25.1389)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E238B #308B23
analogous
#4A238B #7E238B #8B2364
triadic
#7E238B #8B7E23 #238B7E
tetradic
#7E238B #8B4A23 #308B23 #23648B
square
#7E238B #8B4A23 #308B23 #23648B
split-complementary
#7E238B #648B23 #238B4A
monochromatic
#250A29 #52175A #7E238B #AA2FBC #C454D4

Accessibility & contrast

On white

8.40
#7E238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E238B
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E238B#FFFFFF#000000##FFFFFF
##7E238B1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#803655
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e238b;
/* rgb */ color: rgb(126, 35, 139);
/* oklch */ color: oklch(44.5% 0.175 322.4);
Tailwind
colors: {
  custom: {
    50: '#a768ad',
    500: '#7e238b',
    950: '#000000',
  },
}
SCSS
$custom: #7e238b;
$custom-light: #a768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e238b",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 292.5,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4447,
    "c": 0.17548,
    "h": 322.4
  },
  "luminance": 0.07502
}

Semantic roles & 50–950 ramp

primary
#7E238B
secondary
#5FB852
accent
#E34559
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E238B

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

Preview Lab → · Contrast checker → · Palette generator →

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