#452271#452271

#452271 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.130 H 299.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#452271
RGBrgb(69, 34, 113)
HSLhsl(267, 54%, 29%)
HSVhsv(267, 70%, 44%)
CMYKcmyk(38.9%, 69.9%, 0%, 55.7%)
CIE-LABlab(22.31, 34.04, -39.49)
CIE-LCHlch(22.31, 52.13, 310.76°)
OKLaboklab(34.51% 0.0647 -0.1125)
OKLCHoklch(34.51% 0.13 299.9)
XYZxyz(6.0062, 3.6015, 15.9983)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#452271 #4E7122
analogous
#222771 #452271 #6D2271
triadic
#452271 #714522 #227145
tetradic
#452271 #712227 #4E7122 #22716D
square
#452271 #712227 #4E7122 #22716D
split-complementary
#452271 #716D22 #277122
monochromatic
#0E0718 #281442 #452271 #6230A0 #7F46C7

Accessibility & contrast

On white

12.21
#452271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#452271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #452271
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##452271#FFFFFF#000000##FFFFFF
##4522711.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#3B3446
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #452271;
/* rgb */ color: rgb(69, 34, 113);
/* oklch */ color: oklch(34.5% 0.130 299.9);
Tailwind
colors: {
  custom: {
    50: '#7d609a',
    500: '#452271',
    950: '#000000',
  },
}
SCSS
$custom: #452271;
$custom-light: #7d609a;
$custom-dark: #000000;
JSON
{
  "hex": "#452271",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 266.582,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34513,
    "c": 0.12977,
    "h": 299.9
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#452271
secondary
#7DA44A
accent
#DD4B9C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #452271

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

Preview Lab → · Contrast checker → · Palette generator →

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