#462287#462287

#462287 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.157 H 293.3°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#462287
RGBrgb(70, 34, 135)
HSLhsl(261, 60%, 33%)
HSVhsv(261, 75%, 53%)
CMYKcmyk(48.1%, 74.8%, 0%, 47.1%)
CIE-LABlab(24.31, 40.44, -50.19)
CIE-LCHlch(24.31, 64.45, 308.86°)
OKLaboklab(36.55% 0.0621 -0.1439)
OKLCHoklch(36.55% 0.157 293.3)
XYZxyz(7.4698, 4.1952, 23.3331)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462287 #638722
analogous
#223187 #462287 #782287
triadic
#462287 #874622 #228746
tetradic
#462287 #872231 #638722 #228778
square
#462287 #872231 #638722 #228778
split-complementary
#462287 #877822 #318722
monochromatic
#130925 #2D1656 #462287 #5F2EB8 #7F50D3

Accessibility & contrast

On white

11.42
#462287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#462287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462287
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462287#FFFFFF#000000##FFFFFF
##4622871.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#323C52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #462287;
/* rgb */ color: rgb(70, 34, 135);
/* oklch */ color: oklch(36.5% 0.157 293.3);
Tailwind
colors: {
  custom: {
    50: '#8061ab',
    500: '#462287',
    950: '#000000',
  },
}
SCSS
$custom: #462287;
$custom-light: #8061ab;
$custom-dark: #000000;
JSON
{
  "hex": "#462287",
  "rgb": {
    "r": 70,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 261.386,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36549,
    "c": 0.1567,
    "h": 293.3
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#462287
secondary
#91B74E
accent
#E345AB
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #462287

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

Preview Lab → · Contrast checker → · Palette generator →

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