#45126C#45126C

#45126C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.144 H 305.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#45126C
RGBrgb(69, 18, 108)
HSLhsl(274, 71%, 25%)
HSVhsv(274, 83%, 42%)
CMYKcmyk(36.1%, 83.3%, 0%, 57.6%)
CIE-LABlab(19.14, 40.46, -41.40)
CIE-LCHlch(19.14, 57.89, 314.35°)
OKLaboklab(32.14% 0.0825 -0.118)
OKLCHoklch(32.14% 0.144 305)
XYZxyz(5.3767, 2.7806, 14.4379)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45126C #396C12
analogous
#18126C #45126C #6C1266
triadic
#45126C #6C4512 #126C45
tetradic
#45126C #6C1812 #396C12 #12666C
square
#45126C #6C1812 #396C12 #12666C
split-complementary
#45126C #666C12 #126C18
monochromatic
#11041A #230938 #45126C #671BA0 #8823D5

Accessibility & contrast

On white

13.49
#45126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#45126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45126C
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45126C#FFFFFF#000000##FFFFFF
##45126C1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#3E2A3F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #45126c;
/* rgb */ color: rgb(69, 18, 108);
/* oklch */ color: oklch(32.1% 0.144 305.0);
Tailwind
colors: {
  custom: {
    50: '#7d5797',
    500: '#45126c',
    950: '#000000',
  },
}
SCSS
$custom: #45126c;
$custom-light: #7d5797;
$custom-dark: #000000;
JSON
{
  "hex": "#45126c",
  "rgb": {
    "r": 69,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 274,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32139,
    "c": 0.14396,
    "h": 305
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#45126C
secondary
#66A336
accent
#EE3A88
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #45126C

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

Preview Lab → · Contrast checker → · Palette generator →

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