#7E238D#7E238D

#7E238D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.177 H 321.6°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7E238D
RGBrgb(126, 35, 141)
HSLhsl(292, 60%, 35%)
HSVhsv(292, 75%, 55%)
CMYKcmyk(10.6%, 75.2%, 0%, 44.7%)
CIE-LABlab(33.05, 52.70, -39.37)
CIE-LCHlch(33.05, 65.79, 323.24°)
OKLaboklab(44.6% 0.1388 -0.1101)
OKLCHoklch(44.6% 0.177 321.6)
XYZxyz(14.0124, 7.5615, 25.9156)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E238D #328D23
analogous
#49238D #7E238D #8D2367
triadic
#7E238D #8D7E23 #238D7E
tetradic
#7E238D #8D4923 #328D23 #23678D
square
#7E238D #8D4923 #328D23 #23678D
split-complementary
#7E238D #678D23 #238D49
monochromatic
#260B2B #52175C #7E238D #AA2FBE #C355D5

Accessibility & contrast

On white

8.36
#7E238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E238D
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E238D#FFFFFF#000000##FFFFFF
##7E238D1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#31518B
Tritanopia (blue-blind)
#7F3756
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e238d;
/* rgb */ color: rgb(126, 35, 141);
/* oklch */ color: oklch(44.6% 0.177 321.6);
Tailwind
colors: {
  custom: {
    50: '#a768af',
    500: '#7e238d',
    950: '#000000',
  },
}
SCSS
$custom: #7e238d;
$custom-light: #a768af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e238d",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 291.509,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44602,
    "c": 0.17723,
    "h": 321.6
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#7E238D
secondary
#61B953
accent
#E3445B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E238D

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

Preview Lab → · Contrast checker → · Palette generator →

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