#452798#452798

#452798 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.171 H 287.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#452798
RGBrgb(69, 39, 152)
HSLhsl(256, 59%, 37%)
HSVhsv(256, 74%, 60%)
CMYKcmyk(54.6%, 74.3%, 0%, 40.4%)
CIE-LABlab(26.69, 42.60, -56.83)
CIE-LCHlch(26.69, 71.02, 306.85°)
OKLaboklab(38.69% 0.052 -0.1634)
OKLCHoklch(38.69% 0.171 287.7)
XYZxyz(8.8456, 4.9828, 30.1954)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#452798 #7A9827
analogous
#274298 #452798 #7D2798
triadic
#452798 #984527 #279845
tetradic
#452798 #982742 #7A9827 #27987D
square
#452798 #982742 #7A9827 #27987D
split-complementary
#452798 #987D27 #429827
monochromatic
#190E37 #2F1B67 #452798 #5B33C9 #8163D7

Accessibility & contrast

On white

10.52
#452798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#452798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #452798
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##452798#FFFFFF#000000##FFFFFF
##4527981.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#23465D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #452798;
/* rgb */ color: rgb(69, 39, 152);
/* oklch */ color: oklch(38.7% 0.171 287.7);
Tailwind
colors: {
  custom: {
    50: '#8264b7',
    500: '#452798',
    950: '#000000',
  },
}
SCSS
$custom: #452798;
$custom-light: #8264b7;
$custom-dark: #000000;
JSON
{
  "hex": "#452798",
  "rgb": {
    "r": 69,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 255.929,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38685,
    "c": 0.17149,
    "h": 287.7
  },
  "luminance": 0.04983
}

Semantic roles & 50–950 ramp

primary
#452798
secondary
#A3BC5E
accent
#E245B9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #452798

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

Preview Lab → · Contrast checker → · Palette generator →

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