#7F238A#7F238A

#7F238A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.175 H 323.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7F238A
RGBrgb(127, 35, 138)
HSLhsl(294, 60%, 34%)
HSVhsv(294, 75%, 54%)
CMYKcmyk(8%, 74.6%, 0%, 45.9%)
CIE-LABlab(33.03, 52.36, -37.55)
CIE-LCHlch(33.03, 64.43, 324.35°)
OKLaboklab(44.56% 0.1402 -0.1048)
OKLCHoklch(44.56% 0.175 323.2)
XYZxyz(13.9404, 7.5499, 24.7628)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F238A #2E8A23
analogous
#4C238A #7F238A #8A2362
triadic
#7F238A #8A7F23 #238A7F
tetradic
#7F238A #8A4C23 #2E8A23 #23628A
square
#7F238A #8A4C23 #2E8A23 #23628A
split-complementary
#7F238A #628A23 #238A4C
monochromatic
#250A28 #521759 #7F238A #AC2FBB #C654D4

Accessibility & contrast

On white

8.37
#7F238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7F238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F238A
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F238A#FFFFFF#000000##FFFFFF
##7F238A1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f238a;
/* rgb */ color: rgb(127, 35, 138);
/* oklch */ color: oklch(44.6% 0.175 323.2);
Tailwind
colors: {
  custom: {
    50: '#a768ad',
    500: '#7f238a',
    950: '#000000',
  },
}
SCSS
$custom: #7f238a;
$custom-light: #a768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f238a",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 293.592,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44556,
    "c": 0.17507,
    "h": 323.2
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#7F238A
secondary
#5CB751
accent
#E34556
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F238A

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

Preview Lab → · Contrast checker → · Palette generator →

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