#45124C#45124C

#45124C is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.111 H 322.6°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#45124C
RGBrgb(69, 18, 76)
HSLhsl(293, 62%, 18%)
HSVhsv(293, 76%, 30%)
CMYKcmyk(9.2%, 76.3%, 0%, 70.2%)
CIE-LABlab(16.60, 33.03, -24.12)
CIE-LCHlch(16.60, 40.90, 323.86°)
OKLaboklab(29.54% 0.0881 -0.0673)
OKLCHoklch(29.54% 0.111 322.6)
XYZxyz(3.9749, 2.2198, 7.0552)
Luminance0.0222 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45124C #194C12
analogous
#28124C #45124C #4C1236
triadic
#45124C #4C4512 #124C45
tetradic
#45124C #4C2812 #194C12 #12364C
square
#45124C #4C2812 #194C12 #12364C
split-complementary
#45124C #364C12 #124C28
monochromatic
#160619 #18061B #45124C #721E7D #9F29AF

Accessibility & contrast

On white

14.54
#45124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#45124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45124C
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45124C#FFFFFF#000000##FFFFFF
##45124C1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254E
Deuteranopia (green-blind)
#1A2B4B
Tritanopia (blue-blind)
#461C2D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #45124c;
/* rgb */ color: rgb(69, 18, 76);
/* oklch */ color: oklch(29.5% 0.111 322.6);
Tailwind
colors: {
  custom: {
    50: '#7b557e',
    500: '#45124c',
    950: '#000000',
  },
}
SCSS
$custom: #45124c;
$custom-light: #7b557e;
$custom-dark: #000000;
JSON
{
  "hex": "#45124c",
  "rgb": {
    "r": 69,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 292.759,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2954,
    "c": 0.11086,
    "h": 322.6
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#45124C
secondary
#3E8535
accent
#E54357
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #45124C

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

Preview Lab → · Contrast checker → · Palette generator →

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