#7F238B#7F238B

#7F238B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.176 H 322.8°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7F238B
RGBrgb(127, 35, 139)
HSLhsl(293, 60%, 34%)
HSVhsv(293, 75%, 55%)
CMYKcmyk(8.6%, 74.8%, 0%, 45.5%)
CIE-LABlab(33.09, 52.55, -38.07)
CIE-LCHlch(33.09, 64.89, 324.08°)
OKLaboklab(44.62% 0.1402 -0.1063)
OKLCHoklch(44.62% 0.176 322.8)
XYZxyz(14.0132, 7.5790, 25.1459)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F238B #2F8B23
analogous
#4B238B #7F238B #8B2363
triadic
#7F238B #8B7F23 #238B7F
tetradic
#7F238B #8B4B23 #2F8B23 #23638B
square
#7F238B #8B4B23 #2F8B23 #23638B
split-complementary
#7F238B #638B23 #238B4B
monochromatic
#260A29 #52175A #7F238B #AC2FBC #C554D4

Accessibility & contrast

On white

8.35
#7F238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F238B
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F238B#FFFFFF#000000##FFFFFF
##7F238B1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#335189
Tritanopia (blue-blind)
#813655
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f238b;
/* rgb */ color: rgb(127, 35, 139);
/* oklch */ color: oklch(44.6% 0.176 322.8);
Tailwind
colors: {
  custom: {
    50: '#a768ad',
    500: '#7f238b',
    950: '#000000',
  },
}
SCSS
$custom: #7f238b;
$custom-light: #a768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f238b",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 293.077,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44621,
    "c": 0.17593,
    "h": 322.8
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#7F238B
secondary
#5EB852
accent
#E34557
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F238B

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

Preview Lab → · Contrast checker → · Palette generator →

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