#7F238C#7F238C

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

Color values

HEX#7F238C
RGBrgb(127, 35, 140)
HSLhsl(293, 60%, 34%)
HSVhsv(293, 75%, 55%)
CMYKcmyk(9.3%, 75%, 0%, 45.1%)
CIE-LABlab(33.15, 52.73, -38.58)
CIE-LCHlch(33.15, 65.34, 323.81°)
OKLaboklab(44.69% 0.1401 -0.1078)
OKLCHoklch(44.69% 0.177 322.4)
XYZxyz(14.0866, 7.6084, 25.5324)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F238C #308C23
analogous
#4A238C #7F238C #8C2365
triadic
#7F238C #8C7F23 #238C7F
tetradic
#7F238C #8C4A23 #308C23 #23658C
square
#7F238C #8C4A23 #308C23 #23658C
split-complementary
#7F238C #658C23 #238C4A
monochromatic
#260B2A #53175B #7F238C #AB2FBD #C555D4

Accessibility & contrast

On white

8.33
#7F238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7F238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F238C
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F238C#FFFFFF#000000##FFFFFF
##7F238C1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#33518A
Tritanopia (blue-blind)
#813756
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f238c;
/* rgb */ color: rgb(127, 35, 140);
/* oklch */ color: oklch(44.7% 0.177 322.4);
Tailwind
colors: {
  custom: {
    50: '#a868ae',
    500: '#7f238c',
    950: '#000000',
  },
}
SCSS
$custom: #7f238c;
$custom-light: #a868ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f238c",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 292.571,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44686,
    "c": 0.1768,
    "h": 322.4
  },
  "luminance": 0.07608
}

Semantic roles & 50–950 ramp

primary
#7F238C
secondary
#5FB852
accent
#E34558
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F238C

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

Preview Lab → · Contrast checker → · Palette generator →

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