#46227B#46227B

#46227B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.142 H 297.0°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#46227B
RGBrgb(70, 34, 123)
HSLhsl(264, 57%, 31%)
HSVhsv(264, 72%, 48%)
CMYKcmyk(43.1%, 72.4%, 0%, 51.8%)
CIE-LABlab(23.26, 37.04, -44.33)
CIE-LCHlch(23.26, 57.77, 309.88°)
OKLaboklab(35.48% 0.0647 -0.1267)
OKLCHoklch(35.48% 0.142 297)
XYZxyz(6.6720, 3.8761, 19.1317)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46227B #577B22
analogous
#222A7B #46227B #72227B
triadic
#46227B #7B4622 #227B46
tetradic
#46227B #7B222A #577B22 #227B72
square
#46227B #7B222A #577B22 #227B72
split-complementary
#46227B #7B7222 #2A7B22
monochromatic
#0F071B #2B154B #46227B #612FAB #7F4ACD

Accessibility & contrast

On white

11.83
#46227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#46227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #46227B
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46227B#FFFFFF#000000##FFFFFF
##46227B1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#39384C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #46227b;
/* rgb */ color: rgb(70, 34, 123);
/* oklch */ color: oklch(35.5% 0.142 297.0);
Tailwind
colors: {
  custom: {
    50: '#7f60a2',
    500: '#46227b',
    950: '#000000',
  },
}
SCSS
$custom: #46227b;
$custom-light: #7f60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#46227b",
  "rgb": {
    "r": 70,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 264.27,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35479,
    "c": 0.14222,
    "h": 297
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#46227B
secondary
#86AE4B
accent
#E048A2
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #46227B

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

Preview Lab → · Contrast checker → · Palette generator →

#46227B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva