#62138A#62138A

#62138A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.180 H 310.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#62138A
RGBrgb(98, 19, 138)
HSLhsl(280, 76%, 31%)
HSVhsv(280, 86%, 54%)
CMYKcmyk(29%, 86.2%, 0%, 45.9%)
CIE-LABlab(26.44, 51.97, -48.42)
CIE-LCHlch(26.44, 71.03, 317.03°)
OKLaboklab(38.97% 0.116 -0.1375)
OKLCHoklch(38.97% 0.18 310.2)
XYZxyz(9.8564, 4.8976, 24.4659)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62138A #3B8A13
analogous
#26138A #62138A #8A1376
triadic
#62138A #8A6213 #138A62
tetradic
#62138A #8A2613 #3B8A13 #13768A
square
#62138A #8A2613 #3B8A13 #13768A
split-complementary
#62138A #768A13 #138A26
monochromatic
#16041E #3C0C54 #62138A #881AC0 #A834E3

Accessibility & contrast

On white

10.61
#62138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#62138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62138A
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62138A#FFFFFF#000000##FFFFFF
##62138A1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#5C3451
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #62138a;
/* rgb */ color: rgb(98, 19, 138);
/* oklch */ color: oklch(39.0% 0.180 310.2);
Tailwind
colors: {
  custom: {
    50: '#945ead',
    500: '#62138a',
    950: '#000000',
  },
}
SCSS
$custom: #62138a;
$custom-light: #945ead;
$custom-dark: #000000;
JSON
{
  "hex": "#62138a",
  "rgb": {
    "r": 98,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 279.832,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38968,
    "c": 0.17993,
    "h": 310.2
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#62138A
secondary
#67BE3A
accent
#F23575
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62138A

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

Preview Lab → · Contrast checker → · Palette generator →

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