#46127F#46127F

#46127F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.164 H 298.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#46127F
RGBrgb(70, 18, 127)
HSLhsl(269, 75%, 28%)
HSVhsv(269, 86%, 50%)
CMYKcmyk(44.9%, 85.8%, 0%, 50.2%)
CIE-LABlab(21.08, 45.38, -50.43)
CIE-LCHlch(21.08, 67.84, 311.98°)
OKLaboklab(34.07% 0.0778 -0.1444)
OKLCHoklch(34.07% 0.164 298.3)
XYZxyz(6.5719, 3.2669, 20.3589)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46127F #4B7F12
analogous
#12147F #46127F #7C127F
triadic
#46127F #7F4612 #127F46
tetradic
#46127F #7F1214 #4B7F12 #127F7C
square
#46127F #7F1214 #4B7F12 #127F7C
split-complementary
#46127F #7F7C12 #147F12
monochromatic
#0F041B #280A49 #46127F #641AB5 #822BE1

Accessibility & contrast

On white

12.70
#46127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #46127F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46127F#FFFFFF#000000##FFFFFF
##46127F1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#37324A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #46127f;
/* rgb */ color: rgb(70, 18, 127);
/* oklch */ color: oklch(34.1% 0.164 298.3);
Tailwind
colors: {
  custom: {
    50: '#8058a5',
    500: '#46127f',
    950: '#000000',
  },
}
SCSS
$custom: #46127f;
$custom-light: #8058a5;
$custom-dark: #000000;
JSON
{
  "hex": "#46127f",
  "rgb": {
    "r": 70,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 268.624,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34066,
    "c": 0.16405,
    "h": 298.3
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#46127F
secondary
#79B538
accent
#F23698
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #46127F

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

Preview Lab → · Contrast checker → · Palette generator →

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