#7F237B#7F237B

#7F237B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.162 H 329.8°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7F237B
RGBrgb(127, 35, 123)
HSLhsl(303, 57%, 32%)
HSVhsv(303, 72%, 50%)
CMYKcmyk(0%, 72.4%, 3.1%, 50.2%)
CIE-LABlab(32.13, 49.66, -29.61)
CIE-LCHlch(32.13, 57.82, 329.19°)
OKLaboklab(43.63% 0.1404 -0.0817)
OKLCHoklch(43.63% 0.162 329.8)
XYZxyz(12.9285, 7.1451, 19.4333)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F237B #237F27
analogous
#55237F #7F237B #7F234D
triadic
#7F237B #7B7F23 #237B7F
tetradic
#7F237B #7F5523 #237F27 #234D7F
square
#7F237B #7F5523 #237F27 #234D7F
split-complementary
#7F237B #4D7F23 #237F55
monochromatic
#1F091E #4F164D #7F237B #AF30A9 #CE4EC9

Accessibility & contrast

On white

8.65
#7F237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F237B
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F237B#FFFFFF#000000##FFFFFF
##7F237B1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447D
Deuteranopia (green-blind)
#3D5079
Tritanopia (blue-blind)
#842F4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f237b;
/* rgb */ color: rgb(127, 35, 123);
/* oklch */ color: oklch(43.6% 0.162 329.8);
Tailwind
colors: {
  custom: {
    50: '#a767a1',
    500: '#7f237b',
    950: '#000000',
  },
}
SCSS
$custom: #7f237b;
$custom-light: #a767a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f237b",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 302.609,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43629,
    "c": 0.16241,
    "h": 329.8
  },
  "luminance": 0.07144
}

Semantic roles & 50–950 ramp

primary
#7F237B
secondary
#4CB151
accent
#E04E48
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F237B

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

Preview Lab → · Contrast checker → · Palette generator →

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