#81238F#81238F

#81238F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.180 H 322.1°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#81238F
RGBrgb(129, 35, 143)
HSLhsl(292, 61%, 35%)
HSVhsv(292, 76%, 56%)
CMYKcmyk(9.8%, 75.5%, 0%, 43.9%)
CIE-LABlab(33.68, 53.73, -39.58)
CIE-LCHlch(33.68, 66.74, 323.62°)
OKLaboklab(45.18% 0.1423 -0.1107)
OKLCHoklch(45.18% 0.18 322.1)
XYZxyz(14.6117, 7.8532, 26.7275)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81238F #318F23
analogous
#4B238F #81238F #8F2367
triadic
#81238F #8F8123 #238F81
tetradic
#81238F #8F4B23 #318F23 #23678F
square
#81238F #8F4B23 #318F23 #23678F
split-complementary
#81238F #678F23 #238F4B
monochromatic
#280B2D #55175E #81238F #AD2FC0 #C557D6

Accessibility & contrast

On white

8.17
#81238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#81238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81238F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81238F#FFFFFF#000000##FFFFFF
##81238F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#32538C
Tritanopia (blue-blind)
#833857
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #81238f;
/* rgb */ color: rgb(129, 35, 143);
/* oklch */ color: oklch(45.2% 0.180 322.1);
Tailwind
colors: {
  custom: {
    50: '#a968b0',
    500: '#81238f',
    950: '#000000',
  },
}
SCSS
$custom: #81238f;
$custom-light: #a968b0;
$custom-dark: #000000;
JSON
{
  "hex": "#81238f",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 292.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45184,
    "c": 0.18029,
    "h": 322.1
  },
  "luminance": 0.07852
}

Semantic roles & 50–950 ramp

primary
#81238F
secondary
#61BA54
accent
#E44459
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81238F

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

Preview Lab → · Contrast checker → · Palette generator →

#81238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva