#462A94#462A94

#462A94 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.163 H 288.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#462A94
RGBrgb(70, 42, 148)
HSLhsl(256, 56%, 37%)
HSVhsv(256, 72%, 58%)
CMYKcmyk(52.7%, 71.6%, 0%, 42%)
CIE-LABlab(27.01, 39.94, -53.84)
CIE-LCHlch(27.01, 67.04, 306.57°)
OKLaboklab(38.82% 0.0518 -0.1546)
OKLCHoklch(38.82% 0.163 288.5)
XYZxyz(8.6975, 5.0957, 28.5365)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462A94 #78942A
analogous
#2A4394 #462A94 #7B2A94
triadic
#462A94 #94462A #2A9446
tetradic
#462A94 #942A43 #78942A #2A947B
square
#462A94 #942A43 #78942A #2A947B
split-complementary
#462A94 #947B2A #43942A
monochromatic
#190F35 #2F1C64 #462A94 #5D38C4 #8265D3

Accessibility & contrast

On white

10.40
#462A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#462A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462A94
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462A94#FFFFFF#000000##FFFFFF
##462A941.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#29465C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #462a94;
/* rgb */ color: rgb(70, 42, 148);
/* oklch */ color: oklch(38.8% 0.163 288.5);
Tailwind
colors: {
  custom: {
    50: '#8266b4',
    500: '#462a94',
    950: '#000000',
  },
}
SCSS
$custom: #462a94;
$custom-light: #8266b4;
$custom-dark: #000000;
JSON
{
  "hex": "#462a94",
  "rgb": {
    "r": 70,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 255.849,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38825,
    "c": 0.16306,
    "h": 288.5
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#462A94
secondary
#A2B960
accent
#DF49B7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #462A94

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

Preview Lab → · Contrast checker → · Palette generator →

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