#45246C#45246C

#45246C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.120 H 301.4°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#45246C
RGBrgb(69, 36, 108)
HSLhsl(268, 50%, 28%)
HSVhsv(268, 67%, 42%)
CMYKcmyk(36.1%, 66.7%, 0%, 57.6%)
CIE-LABlab(22.34, 31.51, -36.21)
CIE-LCHlch(22.34, 48.00, 311.02°)
OKLaboklab(34.41% 0.0628 -0.1028)
OKLCHoklch(34.41% 0.121 301.4)
XYZxyz(5.7913, 3.6096, 14.5761)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45246C #4B6C24
analogous
#24276C #45246C #69246C
triadic
#45246C #6C4524 #246C45
tetradic
#45246C #6C2427 #4B6C24 #246C69
square
#45246C #6C2427 #4B6C24 #246C69
split-complementary
#45246C #6C6924 #276C24
monochromatic
#0F0817 #28153E #45246C #62339A #8048C2

Accessibility & contrast

On white

12.20
#45246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#45246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45246C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45246C#FFFFFF#000000##FFFFFF
##45246C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356E
Deuteranopia (green-blind)
#09356A
Tritanopia (blue-blind)
#3D3444
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #45246c;
/* rgb */ color: rgb(69, 36, 108);
/* oklch */ color: oklch(34.4% 0.120 301.4);
Tailwind
colors: {
  custom: {
    50: '#7c6197',
    500: '#45246c',
    950: '#000000',
  },
}
SCSS
$custom: #45246c;
$custom-light: #7c6197;
$custom-dark: #000000;
JSON
{
  "hex": "#45246c",
  "rgb": {
    "r": 69,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 267.5,
    "s": 50,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34411,
    "c": 0.1205,
    "h": 301.4
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#45246C
secondary
#799F4D
accent
#DA4E9A
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #45246C

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

Preview Lab → · Contrast checker → · Palette generator →

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