#462297#462297

#462297 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.176 H 289.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#462297
RGBrgb(70, 34, 151)
HSLhsl(258, 63%, 36%)
HSVhsv(258, 77%, 59%)
CMYKcmyk(53.6%, 77.5%, 0%, 40.8%)
CIE-LABlab(25.80, 44.99, -57.66)
CIE-LCHlch(25.80, 73.14, 307.97°)
OKLaboklab(38.06% 0.0579 -0.1658)
OKLCHoklch(38.06% 0.176 289.3)
XYZxyz(8.6821, 4.6801, 29.7180)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462297 #739722
analogous
#223997 #462297 #812297
triadic
#462297 #974622 #229746
tetradic
#462297 #972239 #739722 #229781
square
#462297 #972239 #739722 #229781
split-complementary
#462297 #978122 #399722
monochromatic
#180C33 #2F1765 #462297 #5D2DC9 #815ADA

Accessibility & contrast

On white

10.85
#462297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#462297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462297
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462297#FFFFFF#000000##FFFFFF
##4622971.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#27435B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #462297;
/* rgb */ color: rgb(70, 34, 151);
/* oklch */ color: oklch(38.1% 0.176 289.3);
Tailwind
colors: {
  custom: {
    50: '#8361b7',
    500: '#462297',
    950: '#000000',
  },
}
SCSS
$custom: #462297;
$custom-light: #8361b7;
$custom-dark: #000000;
JSON
{
  "hex": "#462297",
  "rgb": {
    "r": 70,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 258.462,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38061,
    "c": 0.17559,
    "h": 289.3
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#462297
secondary
#9EBE57
accent
#E642B4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #462297

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

Preview Lab → · Contrast checker → · Palette generator →

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