#7F238E#7F238E

#7F238E is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.179 H 321.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7F238E
RGBrgb(127, 35, 142)
HSLhsl(292, 60%, 35%)
HSVhsv(292, 75%, 56%)
CMYKcmyk(10.6%, 75.4%, 0%, 44.3%)
CIE-LABlab(33.28, 53.11, -39.61)
CIE-LCHlch(33.28, 66.26, 323.28°)
OKLaboklab(44.82% 0.14 -0.1108)
OKLCHoklch(44.82% 0.179 321.6)
XYZxyz(14.2354, 7.6679, 26.3162)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F238E #328E23
analogous
#4A238E #7F238E #8E2367
triadic
#7F238E #8E7F23 #238E7F
tetradic
#7F238E #8E4A23 #328E23 #23678E
square
#7F238E #8E4A23 #328E23 #23678E
split-complementary
#7F238E #678E23 #238E4A
monochromatic
#270B2C #53175D #7F238E #AB2FBF #C456D5

Accessibility & contrast

On white

8.29
#7F238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F238E
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F238E#FFFFFF#000000##FFFFFF
##7F238E1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#31528C
Tritanopia (blue-blind)
#803857
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f238e;
/* rgb */ color: rgb(127, 35, 142);
/* oklch */ color: oklch(44.8% 0.179 321.6);
Tailwind
colors: {
  custom: {
    50: '#a868b0',
    500: '#7f238e',
    950: '#000000',
  },
}
SCSS
$custom: #7f238e;
$custom-light: #a868b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f238e",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 291.589,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44818,
    "c": 0.17854,
    "h": 321.6
  },
  "luminance": 0.07667
}

Semantic roles & 50–950 ramp

primary
#7F238E
secondary
#62B953
accent
#E4445B
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F238E

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

Preview Lab → · Contrast checker → · Palette generator →

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