#45126F#45126F

#45126F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.147 H 303.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#45126F
RGBrgb(69, 18, 111)
HSLhsl(273, 72%, 25%)
HSVhsv(273, 84%, 44%)
CMYKcmyk(37.8%, 83.8%, 0%, 56.5%)
CIE-LABlab(19.41, 41.20, -42.90)
CIE-LCHlch(19.41, 59.49, 313.84°)
OKLaboklab(32.41% 0.0816 -0.1224)
OKLCHoklch(32.41% 0.147 303.7)
XYZxyz(5.5391, 2.8455, 15.2933)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45126F #3C6F12
analogous
#16126F #45126F #6F126A
triadic
#45126F #6F4512 #126F45
tetradic
#45126F #6F1612 #3C6F12 #126A6F
square
#45126F #6F1612 #3C6F12 #126A6F
split-complementary
#45126F #6A6F12 #126F16
monochromatic
#10041A #24093A #45126F #661BA4 #8623D8

Accessibility & contrast

On white

13.38
#45126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#45126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45126F
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45126F#FFFFFF#000000##FFFFFF
##45126F1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#3C2B41
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #45126f;
/* rgb */ color: rgb(69, 18, 111);
/* oklch */ color: oklch(32.4% 0.147 303.7);
Tailwind
colors: {
  custom: {
    50: '#7e5799',
    500: '#45126f',
    950: '#000000',
  },
}
SCSS
$custom: #45126f;
$custom-light: #7e5799;
$custom-dark: #000000;
JSON
{
  "hex": "#45126f",
  "rgb": {
    "r": 69,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 272.903,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32412,
    "c": 0.14711,
    "h": 303.7
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#45126F
secondary
#69A637
accent
#EF398B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #45126F

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

Preview Lab → · Contrast checker → · Palette generator →

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