#42267C#42267C

#42267C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.138 H 293.1°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#42267C
RGBrgb(66, 38, 124)
HSLhsl(260, 53%, 32%)
HSVhsv(260, 69%, 49%)
CMYKcmyk(46.8%, 69.4%, 0%, 51.4%)
CIE-LABlab(23.67, 34.28, -44.32)
CIE-LCHlch(23.67, 56.03, 307.72°)
OKLaboklab(35.69% 0.054 -0.1268)
OKLCHoklch(35.69% 0.138 293.1)
XYZxyz(6.5770, 3.9995, 19.4903)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42267C #607C26
analogous
#26357C #42267C #6D267C
triadic
#42267C #7C4226 #267C42
tetradic
#42267C #7C2635 #607C26 #267C6D
square
#42267C #7C2635 #607C26 #267C6D
split-complementary
#42267C #7C6D26 #357C26
monochromatic
#10091E #29184D #42267C #5B34AB #7952CA

Accessibility & contrast

On white

11.67
#42267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#42267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42267C
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42267C#FFFFFF#000000##FFFFFF
##42267C1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#313B4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #42267c;
/* rgb */ color: rgb(66, 38, 124);
/* oklch */ color: oklch(35.7% 0.138 293.1);
Tailwind
colors: {
  custom: {
    50: '#7c62a3',
    500: '#42267c',
    950: '#000000',
  },
}
SCSS
$custom: #42267c;
$custom-light: #7c62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42267c",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 259.535,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3569,
    "c": 0.13781,
    "h": 293.1
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#42267C
secondary
#8FAE50
accent
#DC4BAD
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42267C

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

Preview Lab → · Contrast checker → · Palette generator →

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