#460540#460540

#460540 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.116 H 332.6°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#460540
RGBrgb(70, 5, 64)
HSLhsl(306, 87%, 15%)
HSVhsv(306, 93%, 27%)
CMYKcmyk(0%, 92.9%, 8.6%, 72.5%)
CIE-LABlab(14.29, 35.86, -19.43)
CIE-LCHlch(14.29, 40.78, 331.55°)
OKLaboklab(27.67% 0.1034 -0.0535)
OKLCHoklch(27.67% 0.116 332.6)
XYZxyz(3.5055, 1.7811, 5.0087)
Luminance0.0178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#460540 #05460B
analogous
#2B0546 #460540 #460520
triadic
#460540 #404605 #054046
tetradic
#460540 #462B05 #05460B #052046
square
#460540 #462B05 #05460B #052046
split-complementary
#460540 #204605 #05462B
monochromatic
#1D021A #1D021A #460540 #7F0974 #B80DA8

Accessibility & contrast

On white

15.48
#460540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#460540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #460540
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##460540#FFFFFF#000000##FFFFFF
##4605401.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#1D273F
Tritanopia (blue-blind)
#4A0D23
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #460540;
/* rgb */ color: rgb(70, 5, 64);
/* oklch */ color: oklch(27.7% 0.116 332.6);
Tailwind
colors: {
  custom: {
    50: '#7c4f75',
    500: '#460540',
    950: '#000000',
  },
}
SCSS
$custom: #460540;
$custom-light: #7c4f75;
$custom-dark: #000000;
JSON
{
  "hex": "#460540",
  "rgb": {
    "r": 70,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 305.538,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.27674,
    "c": 0.11641,
    "h": 332.6
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#460540
secondary
#21862A
accent
#FD3E2B
background
#F7F4F7
surface
#EEE7ED
border
#C9C3C8
text
#0A0208
muted
#7C787B

Preview Lab

Preview with #460540

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

Preview Lab → · Contrast checker → · Palette generator →

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