#462A98#462A98

#462A98 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.168 H 287.6°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#462A98
RGBrgb(70, 42, 152)
HSLhsl(255, 57%, 38%)
HSVhsv(255, 72%, 60%)
CMYKcmyk(53.9%, 72.4%, 0%, 40.4%)
CIE-LABlab(27.37, 41.14, -55.71)
CIE-LCHlch(27.37, 69.26, 306.45°)
OKLaboklab(39.19% 0.0509 -0.1601)
OKLCHoklch(39.19% 0.168 287.6)
XYZxyz(9.0196, 5.2246, 30.2329)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462A98 #7C982A
analogous
#2A4598 #462A98 #7D2A98
triadic
#462A98 #98462A #2A9846
tetradic
#462A98 #982A45 #7C982A #2A987D
square
#462A98 #982A45 #7C982A #2A987D
split-complementary
#462A98 #987D2A #45982A
monochromatic
#1A1038 #301D68 #462A98 #5C37C8 #8367D5

Accessibility & contrast

On white

10.27
#462A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#462A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462A98
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462A98#FFFFFF#000000##FFFFFF
##462A981.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#26475E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #462a98;
/* rgb */ color: rgb(70, 42, 152);
/* oklch */ color: oklch(39.2% 0.168 287.6);
Tailwind
colors: {
  custom: {
    50: '#8266b7',
    500: '#462a98',
    950: '#000000',
  },
}
SCSS
$custom: #462a98;
$custom-light: #8266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#462a98",
  "rgb": {
    "r": 70,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 255.273,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39192,
    "c": 0.16802,
    "h": 287.6
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#462A98
secondary
#A5BB62
accent
#E048B9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #462A98

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

Preview Lab → · Contrast checker → · Palette generator →

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