#452178#452178

#452178 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.140 H 297.6°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#452178
RGBrgb(69, 33, 120)
HSLhsl(265, 57%, 30%)
HSVhsv(265, 73%, 47%)
CMYKcmyk(42.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(22.68, 36.54, -43.36)
CIE-LCHlch(22.68, 56.70, 310.12°)
OKLaboklab(34.96% 0.0648 -0.1238)
OKLCHoklch(34.96% 0.14 297.6)
XYZxyz(6.3874, 3.7089, 18.1450)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#452178 #547821
analogous
#212878 #452178 #712178
triadic
#452178 #784521 #217845
tetradic
#452178 #782128 #547821 #217871
square
#452178 #782128 #547821 #217871
split-complementary
#452178 #787121 #287821
monochromatic
#0E0718 #291448 #452178 #612EA8 #7E47CC

Accessibility & contrast

On white

12.06
#452178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#452178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #452178
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##452178#FFFFFF#000000##FFFFFF
##4521781.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#38364A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #452178;
/* rgb */ color: rgb(69, 33, 120);
/* oklch */ color: oklch(35.0% 0.140 297.6);
Tailwind
colors: {
  custom: {
    50: '#7e5fa0',
    500: '#452178',
    950: '#000000',
  },
}
SCSS
$custom: #452178;
$custom-light: #7e5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#452178",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 264.828,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.34963,
    "c": 0.13975,
    "h": 297.6
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#452178
secondary
#83AB4A
accent
#E048A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #452178

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

Preview Lab → · Contrast checker → · Palette generator →

#452178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva