#7E238A#7E238A

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

Color values

HEX#7E238A
RGBrgb(126, 35, 138)
HSLhsl(293, 60%, 34%)
HSVhsv(293, 75%, 54%)
CMYKcmyk(8.7%, 74.6%, 0%, 45.9%)
CIE-LABlab(32.86, 52.14, -37.82)
CIE-LCHlch(32.86, 64.41, 324.04°)
OKLaboklab(44.41% 0.139 -0.1056)
OKLCHoklch(44.41% 0.175 322.8)
XYZxyz(13.7922, 7.4735, 24.7559)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E238A #2F8A23
analogous
#4B238A #7E238A #8A2363
triadic
#7E238A #8A7E23 #238A7E
tetradic
#7E238A #8A4B23 #2F8A23 #23638A
square
#7E238A #8A4B23 #2F8A23 #23638A
split-complementary
#7E238A #638A23 #238A4B
monochromatic
#250A28 #511759 #7E238A #AB2FBB #C554D4

Accessibility & contrast

On white

8.42
#7E238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7E238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E238A
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E238A#FFFFFF#000000##FFFFFF
##7E238A1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e238a;
/* rgb */ color: rgb(126, 35, 138);
/* oklch */ color: oklch(44.4% 0.175 322.8);
Tailwind
colors: {
  custom: {
    50: '#a768ad',
    500: '#7e238a',
    950: '#000000',
  },
}
SCSS
$custom: #7e238a;
$custom-light: #a768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e238a",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 293.01,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44405,
    "c": 0.17461,
    "h": 322.8
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#7E238A
secondary
#5DB751
accent
#E34557
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E238A

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

Preview Lab → · Contrast checker → · Palette generator →

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