#62138F#62138F

#62138F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.4% C 0.184 H 308.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#62138F
RGBrgb(98, 19, 143)
HSLhsl(278, 77%, 32%)
HSVhsv(278, 87%, 56%)
CMYKcmyk(31.5%, 86.7%, 0%, 43.9%)
CIE-LABlab(26.86, 53.05, -50.83)
CIE-LCHlch(26.86, 73.47, 316.22°)
OKLaboklab(39.39% 0.1145 -0.1446)
OKLCHoklch(39.39% 0.184 308.4)
XYZxyz(10.2268, 5.0458, 26.4165)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62138F #408F13
analogous
#24138F #62138F #8F137E
triadic
#62138F #8F6213 #138F62
tetradic
#62138F #8F2413 #408F13 #137E8F
square
#62138F #8F2413 #408F13 #137E8F
split-complementary
#62138F #7E8F13 #138F24
monochromatic
#180523 #3D0C59 #62138F #871AC5 #A638E5

Accessibility & contrast

On white

10.45
#62138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#62138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62138F
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62138F#FFFFFF#000000##FFFFFF
##62138F1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#5B3654
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #62138f;
/* rgb */ color: rgb(98, 19, 143);
/* oklch */ color: oklch(39.4% 0.184 308.4);
Tailwind
colors: {
  custom: {
    50: '#945eb1',
    500: '#62138f',
    950: '#000000',
  },
}
SCSS
$custom: #62138f;
$custom-light: #945eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#62138f",
  "rgb": {
    "r": 98,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 278.226,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39393,
    "c": 0.18448,
    "h": 308.4
  },
  "luminance": 0.05046
}

Semantic roles & 50–950 ramp

primary
#62138F
secondary
#6CC33B
accent
#F3357A
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #62138F

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

Preview Lab → · Contrast checker → · Palette generator →

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