#7E239F#7E239F

#7E239F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.193 H 315.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7E239F
RGBrgb(126, 35, 159)
HSLhsl(284, 64%, 38%)
HSVhsv(284, 78%, 62%)
CMYKcmyk(20.8%, 78%, 0%, 37.6%)
CIE-LABlab(34.28, 56.24, -48.40)
CIE-LCHlch(34.28, 74.20, 319.28°)
OKLaboklab(45.86% 0.1366 -0.1366)
OKLCHoklch(45.86% 0.193 315)
XYZxyz(15.4622, 8.1415, 33.5511)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E239F #449F23
analogous
#40239F #7E239F #9F2382
triadic
#7E239F #9F7E23 #239F7E
tetradic
#7E239F #9F4023 #449F23 #23829F
square
#7E239F #9F4023 #449F23 #23829F
split-complementary
#7E239F #829F23 #239F40
monochromatic
#2F0D3B #56186D #7E239F #A62ED1 #BB60DC

Accessibility & contrast

On white

7.99
#7E239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E239F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E239F#FFFFFF#000000##FFFFFF
##7E239F1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#1D539C
Tritanopia (blue-blind)
#7B3F60
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e239f;
/* rgb */ color: rgb(126, 35, 159);
/* oklch */ color: oklch(45.9% 0.193 315.0);
Tailwind
colors: {
  custom: {
    50: '#a869bc',
    500: '#7e239f',
    950: '#000000',
  },
}
SCSS
$custom: #7e239f;
$custom-light: #a869bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e239f",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 284.032,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45858,
    "c": 0.19322,
    "h": 315
  },
  "luminance": 0.08141
}

Semantic roles & 50–950 ramp

primary
#7E239F
secondary
#77C15D
accent
#E7416D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E239F

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

Preview Lab → · Contrast checker → · Palette generator →

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