#62128F#62128F

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

Color values

HEX#62128F
RGBrgb(98, 18, 143)
HSLhsl(278, 78%, 32%)
HSVhsv(278, 87%, 56%)
CMYKcmyk(31.5%, 87.4%, 0%, 43.9%)
CIE-LABlab(26.77, 53.33, -50.99)
CIE-LCHlch(26.77, 73.78, 316.29°)
OKLaboklab(39.33% 0.1151 -0.1451)
OKLCHoklch(39.33% 0.185 308.4)
XYZxyz(10.2102, 5.0126, 26.4109)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62128F #3F8F12
analogous
#24128F #62128F #8F127E
triadic
#62128F #8F6212 #128F62
tetradic
#62128F #8F2412 #3F8F12 #127E8F
square
#62128F #8F2412 #3F8F12 #127E8F
split-complementary
#62128F #7E8F12 #128F24
monochromatic
#170422 #3D0B59 #62128F #8719C5 #A636E6

Accessibility & contrast

On white

10.49
#62128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#62128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62128F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62128F#FFFFFF#000000##FFFFFF
##62128F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.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: #62128f;
/* rgb */ color: rgb(98, 18, 143);
/* oklch */ color: oklch(39.3% 0.185 308.4);
Tailwind
colors: {
  custom: {
    50: '#945eb1',
    500: '#62128f',
    950: '#000000',
  },
}
SCSS
$custom: #62128f;
$custom-light: #945eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#62128f",
  "rgb": {
    "r": 98,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 278.4,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39328,
    "c": 0.18522,
    "h": 308.4
  },
  "luminance": 0.05012
}

Semantic roles & 50–950 ramp

primary
#62128F
secondary
#6BC33A
accent
#F43479
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #62128F

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

Preview Lab → · Contrast checker → · Palette generator →

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