#45257A#45257A

#45257A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.137 H 296.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#45257A
RGBrgb(69, 37, 122)
HSLhsl(263, 53%, 31%)
HSVhsv(263, 70%, 48%)
CMYKcmyk(43.4%, 69.7%, 0%, 52.2%)
CIE-LABlab(23.65, 34.90, -43.07)
CIE-LCHlch(23.65, 55.43, 309.02°)
OKLaboklab(35.71% 0.06 -0.123)
OKLCHoklch(35.71% 0.137 296)
XYZxyz(6.6277, 3.9933, 18.8302)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45257A #5A7A25
analogous
#252F7A #45257A #6F257A
triadic
#45257A #7A4525 #257A45
tetradic
#45257A #7A252F #5A7A25 #257A6F
square
#45257A #7A252F #5A7A25 #257A6F
split-complementary
#45257A #7A6F25 #2F7A25
monochromatic
#10091C #2A174B #45257A #6033A9 #7E50CA

Accessibility & contrast

On white

11.68
#45257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#45257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45257A
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45257A#FFFFFF#000000##FFFFFF
##45257A1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#37394C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45257a;
/* rgb */ color: rgb(69, 37, 122);
/* oklch */ color: oklch(35.7% 0.137 296.0);
Tailwind
colors: {
  custom: {
    50: '#7e62a1',
    500: '#45257a',
    950: '#000000',
  },
}
SCSS
$custom: #45257a;
$custom-light: #7e62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#45257a",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 262.588,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35705,
    "c": 0.13684,
    "h": 296
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#45257A
secondary
#89AC4E
accent
#DD4BA6
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45257A

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

Preview Lab → · Contrast checker → · Palette generator →

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