#62187F#62187F

#62187F is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.5% C 0.165 H 314.0°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#62187F
RGBrgb(98, 24, 127)
HSLhsl(283, 68%, 30%)
HSVhsv(283, 81%, 50%)
CMYKcmyk(22.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(26.11, 48.03, -42.06)
CIE-LCHlch(26.11, 63.84, 318.79°)
OKLaboklab(38.46% 0.1149 -0.1189)
OKLCHoklch(38.46% 0.165 314)
XYZxyz(9.1937, 4.7826, 20.5134)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62187F #357F18
analogous
#2F187F #62187F #7F1869
triadic
#62187F #7F6218 #187F62
tetradic
#62187F #7F2F18 #357F18 #18697F
square
#62187F #7F2F18 #357F18 #18697F
split-complementary
#62187F #697F18 #187F2F
monochromatic
#14051A #3A0E4C #62187F #8A22B2 #AC38D9

Accessibility & contrast

On white

10.73
#62187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#62187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62187F
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62187F#FFFFFF#000000##FFFFFF
##62187F1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#0E3F7D
Tritanopia (blue-blind)
#5F314C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #62187f;
/* rgb */ color: rgb(98, 24, 127);
/* oklch */ color: oklch(38.5% 0.165 314.0);
Tailwind
colors: {
  custom: {
    50: '#935fa5',
    500: '#62187f',
    950: '#000000',
  },
}
SCSS
$custom: #62187f;
$custom-light: #935fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#62187f",
  "rgb": {
    "r": 98,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 283.107,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38458,
    "c": 0.16532,
    "h": 314
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#62187F
secondary
#60B33F
accent
#EB3D6E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #62187F

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

Preview Lab → · Contrast checker → · Palette generator →

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