#462170#462170

#462170 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.130 H 301.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#462170
RGBrgb(70, 33, 112)
HSLhsl(268, 54%, 28%)
HSVhsv(268, 71%, 44%)
CMYKcmyk(37.5%, 70.5%, 0%, 56.1%)
CIE-LABlab(22.16, 34.54, -39.08)
CIE-LCHlch(22.16, 52.16, 311.47°)
OKLaboklab(34.41% 0.0676 -0.1112)
OKLCHoklch(34.41% 0.13 301.3)
XYZxyz(5.9936, 3.5596, 15.6974)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462170 #4B7021
analogous
#212370 #462170 #6D2170
triadic
#462170 #704621 #217046
tetradic
#462170 #702123 #4B7021 #21706D
square
#462170 #702123 #4B7021 #21706D
split-complementary
#462170 #706D21 #237021
monochromatic
#0F0718 #281341 #462170 #642F9F #8244C8

Accessibility & contrast

On white

12.27
#462170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#462170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462170
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462170#FFFFFF#000000##FFFFFF
##4621701.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#3D3345
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #462170;
/* rgb */ color: rgb(70, 33, 112);
/* oklch */ color: oklch(34.4% 0.130 301.3);
Tailwind
colors: {
  custom: {
    50: '#7d5f9a',
    500: '#462170',
    950: '#000000',
  },
}
SCSS
$custom: #462170;
$custom-light: #7d5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#462170",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 268.101,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3441,
    "c": 0.13014,
    "h": 301.3
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#462170
secondary
#79A449
accent
#DE4A99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #462170

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

Preview Lab → · Contrast checker → · Palette generator →

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