#62258B#62258B

#62258B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.162 H 308.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#62258B
RGBrgb(98, 37, 139)
HSLhsl(276, 58%, 35%)
HSVhsv(276, 73%, 55%)
CMYKcmyk(29.5%, 73.4%, 0%, 45.5%)
CIE-LABlab(28.86, 45.46, -45.11)
CIE-LCHlch(28.86, 64.04, 315.22°)
OKLaboklab(40.69% 0.1001 -0.1279)
OKLCHoklch(40.69% 0.162 308)
XYZxyz(10.3578, 5.7840, 24.9919)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62258B #4E8B25
analogous
#2F258B #62258B #8B2581
triadic
#62258B #8B6225 #258B62
tetradic
#62258B #8B2F25 #4E8B25 #25818B
square
#62258B #8B2F25 #4E8B25 #25818B
split-complementary
#62258B #818B25 #258B2F
monochromatic
#1E0B2A #40185B #62258B #8432BB #A158D3

Accessibility & contrast

On white

9.74
#62258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#62258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62258B
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62258B#FFFFFF#000000##FFFFFF
##62258B1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#064589
Tritanopia (blue-blind)
#5B3C55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #62258b;
/* rgb */ color: rgb(98, 37, 139);
/* oklch */ color: oklch(40.7% 0.162 308.0);
Tailwind
colors: {
  custom: {
    50: '#9365ae',
    500: '#62258b',
    950: '#000000',
  },
}
SCSS
$custom: #62258b;
$custom-light: #9365ae;
$custom-dark: #000000;
JSON
{
  "hex": "#62258b",
  "rgb": {
    "r": 98,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 275.882,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40693,
    "c": 0.16242,
    "h": 308
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#62258B
secondary
#7CB755
accent
#E14785
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #62258B

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

Preview Lab → · Contrast checker → · Palette generator →

#62258B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva