#45125A#45125A

#45125A is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.6% C 0.125 H 313.8°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#45125A
RGBrgb(69, 18, 90)
HSLhsl(283, 67%, 21%)
HSVhsv(283, 80%, 35%)
CMYKcmyk(23.3%, 80%, 0%, 64.7%)
CIE-LABlab(17.63, 36.15, -31.96)
CIE-LCHlch(17.63, 48.25, 318.51°)
OKLaboklab(30.6% 0.0867 -0.0903)
OKLCHoklch(30.6% 0.125 313.8)
XYZxyz(4.5157, 2.4362, 9.9032)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45125A #275A12
analogous
#21125A #45125A #5A124B
triadic
#45125A #5A4512 #125A45
tetradic
#45125A #5A2112 #275A12 #124B5A
square
#45125A #5A2112 #275A12 #124B5A
split-complementary
#45125A #4B5A12 #125A21
monochromatic
#14051A #1E0827 #45125A #6C1C8D #9326C0

Accessibility & contrast

On white

14.12
#45125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#45125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45125A
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45125A#FFFFFF#000000##FFFFFF
##45125A1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#0C2C58
Tritanopia (blue-blind)
#432235
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #45125a;
/* rgb */ color: rgb(69, 18, 90);
/* oklch */ color: oklch(30.6% 0.125 313.8);
Tailwind
colors: {
  custom: {
    50: '#7c5689',
    500: '#45125a',
    950: '#000000',
  },
}
SCSS
$custom: #45125a;
$custom-light: #7c5689;
$custom-dark: #000000;
JSON
{
  "hex": "#45125a",
  "rgb": {
    "r": 69,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 282.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30599,
    "c": 0.12515,
    "h": 313.8
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#45125A
secondary
#509335
accent
#EA3E70
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #45125A

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

Preview Lab → · Contrast checker → · Palette generator →

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