#462161#462161

#462161 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.2% C 0.112 H 308.1°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#462161
RGBrgb(70, 33, 97)
HSLhsl(275, 49%, 25%)
HSVhsv(275, 66%, 38%)
CMYKcmyk(27.8%, 66%, 0%, 62%)
CIE-LABlab(21.03, 30.53, -31.13)
CIE-LCHlch(21.03, 43.60, 314.44°)
OKLaboklab(33.24% 0.0689 -0.0879)
OKLCHoklch(33.24% 0.112 308.1)
XYZxyz(5.2269, 3.2529, 11.6595)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462161 #3C6121
analogous
#262161 #462161 #61215C
triadic
#462161 #614621 #216146
tetradic
#462161 #612621 #3C6121 #215C61
square
#462161 #612621 #3C6121 #215C61
split-complementary
#462161 #5C6121 #216126
monochromatic
#100817 #251133 #462161 #67318F #8840BC

Accessibility & contrast

On white

12.72
#462161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#462161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462161
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462161#FFFFFF#000000##FFFFFF
##4621611.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033163
Deuteranopia (green-blind)
#173360
Tritanopia (blue-blind)
#422E3D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #462161;
/* rgb */ color: rgb(70, 33, 97);
/* oklch */ color: oklch(33.2% 0.112 308.1);
Tailwind
colors: {
  custom: {
    50: '#7c5f8e',
    500: '#462161',
    950: '#000000',
  },
}
SCSS
$custom: #462161;
$custom-light: #7c5f8e;
$custom-dark: #000000;
JSON
{
  "hex": "#462161",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 274.688,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33237,
    "c": 0.11166,
    "h": 308.1
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#462161
secondary
#699549
accent
#D94F89
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #462161

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

Preview Lab → · Contrast checker → · Palette generator →

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