#45126A#45126A

#45126A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.142 H 305.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#45126A
RGBrgb(69, 18, 106)
HSLhsl(275, 71%, 24%)
HSVhsv(275, 83%, 42%)
CMYKcmyk(34.9%, 83%, 0%, 58.4%)
CIE-LABlab(18.96, 39.97, -40.38)
CIE-LCHlch(18.96, 56.82, 314.71°)
OKLaboklab(31.96% 0.0831 -0.115)
OKLCHoklch(31.96% 0.142 305.8)
XYZxyz(5.2715, 2.7385, 13.8837)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45126A #376A12
analogous
#19126A #45126A #6A1263
triadic
#45126A #6A4512 #126A45
tetradic
#45126A #6A1912 #376A12 #12636A
square
#45126A #6A1912 #376A12 #12636A
split-complementary
#45126A #636A12 #126A19
monochromatic
#11041A #230936 #45126A #671B9E #8924D3

Accessibility & contrast

On white

13.57
#45126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#45126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45126A
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45126A#FFFFFF#000000##FFFFFF
##45126A1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002E68
Tritanopia (blue-blind)
#3E293E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #45126a;
/* rgb */ color: rgb(69, 18, 106);
/* oklch */ color: oklch(32.0% 0.142 305.8);
Tailwind
colors: {
  custom: {
    50: '#7d5795',
    500: '#45126a',
    950: '#000000',
  },
}
SCSS
$custom: #45126a;
$custom-light: #7d5795;
$custom-dark: #000000;
JSON
{
  "hex": "#45126a",
  "rgb": {
    "r": 69,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 274.773,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31959,
    "c": 0.14186,
    "h": 305.8
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#45126A
secondary
#63A236
accent
#EE3A86
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #45126A

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

Preview Lab → · Contrast checker → · Palette generator →

#45126A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva