#42328F#42328F

#42328F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.147 H 285.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#42328F
RGBrgb(66, 50, 143)
HSLhsl(250, 48%, 38%)
HSVhsv(250, 65%, 56%)
CMYKcmyk(53.8%, 65%, 0%, 43.9%)
CIE-LABlab(27.91, 32.97, -49.31)
CIE-LCHlch(27.91, 59.32, 303.77°)
OKLaboklab(39.25% 0.0387 -0.1415)
OKLCHoklch(39.25% 0.147 285.3)
XYZxyz(8.3438, 5.4222, 26.5882)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42328F #7F8F32
analogous
#32508F #42328F #71328F
triadic
#42328F #8F4232 #328F42
tetradic
#42328F #8F3250 #7F8F32 #328F71
square
#42328F #8F3250 #7F8F32 #328F71
split-complementary
#42328F #8F7132 #508F32
monochromatic
#181234 #2D2262 #42328F #5742BC #7F6FCD

Accessibility & contrast

On white

10.07
#42328F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#42328F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42328F
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42328F#FFFFFF#000000##FFFFFF
##42328F1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#23495B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #42328f;
/* rgb */ color: rgb(66, 50, 143);
/* oklch */ color: oklch(39.2% 0.147 285.3);
Tailwind
colors: {
  custom: {
    50: '#7e6bb1',
    500: '#42328f',
    950: '#000000',
  },
}
SCSS
$custom: #42328f;
$custom-light: #7e6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#42328f",
  "rgb": {
    "r": 66,
    "g": 50,
    "b": 143
  },
  "hsl": {
    "h": 250.323,
    "s": 48.187,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39245,
    "c": 0.14668,
    "h": 285.3
  },
  "luminance": 0.05423
}

Semantic roles & 50–950 ramp

primary
#42328F
secondary
#A7B468
accent
#D850C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #42328F

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

Preview Lab → · Contrast checker → · Palette generator →

#42328F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva