#7F237D#7F237D

#7F237D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.7% C 0.164 H 328.9°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#7F237D
RGBrgb(127, 35, 125)
HSLhsl(301, 57%, 32%)
HSVhsv(301, 72%, 50%)
CMYKcmyk(0%, 72.4%, 1.6%, 50.2%)
CIE-LABlab(32.25, 50.01, -30.69)
CIE-LCHlch(32.25, 58.68, 328.46°)
OKLaboklab(43.75% 0.1404 -0.0848)
OKLCHoklch(43.75% 0.164 328.9)
XYZxyz(13.0550, 7.1957, 20.0994)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F237D #237F25
analogous
#53237F #7F237D #7F234F
triadic
#7F237D #7D7F23 #237D7F
tetradic
#7F237D #7F5323 #237F25 #234F7F
square
#7F237D #7F5323 #237F25 #234F7F
split-complementary
#7F237D #4F7F23 #237F53
monochromatic
#1F091F #4F164E #7F237D #AF30AC #CE4ECB

Accessibility & contrast

On white

8.61
#7F237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7F237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F237D
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F237D#FFFFFF#000000##FFFFFF
##7F237D1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164480
Deuteranopia (green-blind)
#3C507B
Tritanopia (blue-blind)
#83304D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f237d;
/* rgb */ color: rgb(127, 35, 125);
/* oklch */ color: oklch(43.7% 0.164 328.9);
Tailwind
colors: {
  custom: {
    50: '#a767a3',
    500: '#7f237d',
    950: '#000000',
  },
}
SCSS
$custom: #7f237d;
$custom-light: #a767a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f237d",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 301.304,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43747,
    "c": 0.16406,
    "h": 328.9
  },
  "luminance": 0.07195
}

Semantic roles & 50–950 ramp

primary
#7F237D
secondary
#4CB14F
accent
#E04B48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F237D

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

Preview Lab → · Contrast checker → · Palette generator →

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