#62127F#62127F

#62127F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.0% C 0.171 H 314.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#62127F
RGBrgb(98, 18, 127)
HSLhsl(284, 75%, 28%)
HSVhsv(284, 86%, 50%)
CMYKcmyk(22.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(25.45, 49.94, -43.12)
CIE-LCHlch(25.45, 65.98, 319.19°)
OKLaboklab(38% 0.1196 -0.122)
OKLCHoklch(38% 0.171 314.4)
XYZxyz(9.0834, 4.5619, 20.4766)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62127F #2F7F12
analogous
#2C127F #62127F #7F1265
triadic
#62127F #7F6212 #127F62
tetradic
#62127F #7F2C12 #2F7F12 #12657F
square
#62127F #7F2C12 #2F7F12 #12657F
split-complementary
#62127F #657F12 #127F2C
monochromatic
#15041B #390A49 #62127F #8B1AB5 #B02BE1

Accessibility & contrast

On white

10.98
#62127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#62127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62127F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62127F#FFFFFF#000000##FFFFFF
##62127F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#063E7D
Tritanopia (blue-blind)
#5F2E4A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #62127f;
/* rgb */ color: rgb(98, 18, 127);
/* oklch */ color: oklch(38.0% 0.171 314.4);
Tailwind
colors: {
  custom: {
    50: '#935da5',
    500: '#62127f',
    950: '#000000',
  },
}
SCSS
$custom: #62127f;
$custom-light: #935da5;
$custom-dark: #000000;
JSON
{
  "hex": "#62127f",
  "rgb": {
    "r": 98,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 284.037,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37998,
    "c": 0.17083,
    "h": 314.4
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#62127F
secondary
#59B538
accent
#F23668
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #62127F

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

Preview Lab → · Contrast checker → · Palette generator →

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