#462A87#462A87

#462A87 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.147 H 291.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#462A87
RGBrgb(70, 42, 135)
HSLhsl(258, 53%, 35%)
HSVhsv(258, 69%, 53%)
CMYKcmyk(48.1%, 68.9%, 0%, 47.1%)
CIE-LABlab(25.88, 36.06, -47.62)
CIE-LCHlch(25.88, 59.73, 307.13°)
OKLaboklab(37.67% 0.054 -0.1363)
OKLCHoklch(37.67% 0.147 291.6)
XYZxyz(7.7257, 4.7070, 23.4185)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462A87 #6B872A
analogous
#2A3C87 #462A87 #752A87
triadic
#462A87 #87462A #2A8746
tetradic
#462A87 #872A3C #6B872A #2A8775
square
#462A87 #872A3C #6B872A #2A8775
split-complementary
#462A87 #87752A #3C872A
monochromatic
#160D2A #2E1B58 #462A87 #5E39B6 #805ECD

Accessibility & contrast

On white

10.82
#462A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#462A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462A87
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462A87#FFFFFF#000000##FFFFFF
##462A871.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#324155
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #462a87;
/* rgb */ color: rgb(70, 42, 135);
/* oklch */ color: oklch(37.7% 0.147 291.6);
Tailwind
colors: {
  custom: {
    50: '#8065ab',
    500: '#462a87',
    950: '#000000',
  },
}
SCSS
$custom: #462a87;
$custom-light: #8065ab;
$custom-dark: #000000;
JSON
{
  "hex": "#462a87",
  "rgb": {
    "r": 70,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 258.065,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37673,
    "c": 0.14666,
    "h": 291.6
  },
  "luminance": 0.04707
}

Semantic roles & 50–950 ramp

primary
#462A87
secondary
#98B35A
accent
#DC4CB1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #462A87

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

Preview Lab → · Contrast checker → · Palette generator →

#462A87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva