#7E238F#7E238F

#7E238F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.179 H 320.8°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7E238F
RGBrgb(126, 35, 143)
HSLhsl(291, 61%, 35%)
HSVhsv(291, 76%, 56%)
CMYKcmyk(11.9%, 75.5%, 0%, 43.9%)
CIE-LABlab(33.18, 53.09, -40.40)
CIE-LCHlch(33.18, 66.71, 322.73°)
OKLaboklab(44.74% 0.1387 -0.1131)
OKLCHoklch(44.74% 0.179 320.8)
XYZxyz(14.1626, 7.6216, 26.7064)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E238F #348F23
analogous
#48238F #7E238F #8F236A
triadic
#7E238F #8F7E23 #238F7E
tetradic
#7E238F #8F4823 #348F23 #236A8F
square
#7E238F #8F4823 #348F23 #236A8F
split-complementary
#7E238F #6A8F23 #238F48
monochromatic
#270B2D #53175E #7E238F #A92FC0 #C257D6

Accessibility & contrast

On white

8.32
#7E238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E238F
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E238F#FFFFFF#000000##FFFFFF
##7E238F1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#2F518D
Tritanopia (blue-blind)
#7F3857
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e238f;
/* rgb */ color: rgb(126, 35, 143);
/* oklch */ color: oklch(44.7% 0.179 320.8);
Tailwind
colors: {
  custom: {
    50: '#a768b0',
    500: '#7e238f',
    950: '#000000',
  },
}
SCSS
$custom: #7e238f;
$custom-light: #a768b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e238f",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 290.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44736,
    "c": 0.17898,
    "h": 320.8
  },
  "luminance": 0.07621
}

Semantic roles & 50–950 ramp

primary
#7E238F
secondary
#64BA54
accent
#E4445D
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E238F

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

Preview Lab → · Contrast checker → · Palette generator →

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