#46127E#46127E

#46127E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 34.0% C 0.163 H 298.6°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#46127E
RGBrgb(70, 18, 126)
HSLhsl(269, 75%, 28%)
HSVhsv(269, 86%, 49%)
CMYKcmyk(44.4%, 85.7%, 0%, 50.6%)
CIE-LABlab(20.98, 45.13, -49.96)
CIE-LCHlch(20.98, 67.32, 312.09°)
OKLaboklab(33.97% 0.0781 -0.1431)
OKLCHoklch(33.97% 0.163 298.6)
XYZxyz(6.5070, 3.2410, 20.0174)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46127E #4A7E12
analogous
#12147E #46127E #7C127E
triadic
#46127E #7E4612 #127E46
tetradic
#46127E #7E1214 #4A7E12 #127E7C
square
#46127E #7E1214 #4A7E12 #127E7C
split-complementary
#46127E #7E7C12 #147E12
monochromatic
#0F041B #280A48 #46127E #641AB4 #822AE1

Accessibility & contrast

On white

12.74
#46127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#46127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #46127E
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46127E#FFFFFF#000000##FFFFFF
##46127E1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#38324A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #46127e;
/* rgb */ color: rgb(70, 18, 126);
/* oklch */ color: oklch(34.0% 0.163 298.6);
Tailwind
colors: {
  custom: {
    50: '#8058a4',
    500: '#46127e',
    950: '#000000',
  },
}
SCSS
$custom: #46127e;
$custom-light: #8058a4;
$custom-dark: #000000;
JSON
{
  "hex": "#46127e",
  "rgb": {
    "r": 70,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 268.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33968,
    "c": 0.163,
    "h": 298.6
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#46127E
secondary
#78B438
accent
#F23697
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #46127E

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

Preview Lab → · Contrast checker → · Palette generator →

#46127E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva