#7F238D#7F238D

#7F238D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.178 H 322.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7F238D
RGBrgb(127, 35, 141)
HSLhsl(292, 60%, 35%)
HSVhsv(292, 75%, 55%)
CMYKcmyk(9.9%, 75.2%, 0%, 44.7%)
CIE-LABlab(33.22, 52.92, -39.10)
CIE-LCHlch(33.22, 65.80, 323.54°)
OKLaboklab(44.75% 0.1401 -0.1093)
OKLCHoklch(44.75% 0.178 322)
XYZxyz(14.1606, 7.6380, 25.9225)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F238D #318D23
analogous
#4A238D #7F238D #8D2366
triadic
#7F238D #8D7F23 #238D7F
tetradic
#7F238D #8D4A23 #318D23 #23668D
square
#7F238D #8D4A23 #318D23 #23668D
split-complementary
#7F238D #668D23 #238D4A
monochromatic
#270B2B #53175C #7F238D #AB2FBE #C455D5

Accessibility & contrast

On white

8.31
#7F238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F238D
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F238D#FFFFFF#000000##FFFFFF
##7F238D1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#803756
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f238d;
/* rgb */ color: rgb(127, 35, 141);
/* oklch */ color: oklch(44.8% 0.178 322.0);
Tailwind
colors: {
  custom: {
    50: '#a868af',
    500: '#7f238d',
    950: '#000000',
  },
}
SCSS
$custom: #7f238d;
$custom-light: #a868af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f238d",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 292.075,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44752,
    "c": 0.17767,
    "h": 322
  },
  "luminance": 0.07637
}

Semantic roles & 50–950 ramp

primary
#7F238D
secondary
#60B953
accent
#E34459
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F238D

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

Preview Lab → · Contrast checker → · Palette generator →

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