#462187#462187

#462187 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.158 H 293.5°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#462187
RGBrgb(70, 33, 135)
HSLhsl(262, 61%, 33%)
HSVhsv(262, 76%, 53%)
CMYKcmyk(48.1%, 75.6%, 0%, 47.1%)
CIE-LABlab(24.13, 40.95, -50.49)
CIE-LCHlch(24.13, 65.00, 309.04°)
OKLaboklab(36.42% 0.063 -0.1447)
OKLCHoklch(36.42% 0.158 293.5)
XYZxyz(7.4416, 4.1388, 23.3238)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462187 #628721
analogous
#212F87 #462187 #792187
triadic
#462187 #874621 #218746
tetradic
#462187 #87212F #628721 #218779
square
#462187 #87212F #628721 #218779
split-complementary
#462187 #877921 #2F8721
monochromatic
#130925 #2C1556 #462187 #602DB8 #7F4FD4

Accessibility & contrast

On white

11.49
#462187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#462187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462187
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462187#FFFFFF#000000##FFFFFF
##4621871.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#323C52
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #462187;
/* rgb */ color: rgb(70, 33, 135);
/* oklch */ color: oklch(36.4% 0.158 293.5);
Tailwind
colors: {
  custom: {
    50: '#8060ab',
    500: '#462187',
    950: '#000000',
  },
}
SCSS
$custom: #462187;
$custom-light: #8060ab;
$custom-dark: #000000;
JSON
{
  "hex": "#462187",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 261.765,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36421,
    "c": 0.15787,
    "h": 293.5
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#462187
secondary
#90B74D
accent
#E444AA
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #462187

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

Preview Lab → · Contrast checker → · Palette generator →

#462187 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva