#42275D#42275D

#42275D is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.4% C 0.095 H 304.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#42275D
RGBrgb(66, 39, 93)
HSLhsl(270, 41%, 26%)
HSVhsv(270, 58%, 36%)
CMYKcmyk(29%, 58.1%, 0%, 63.5%)
CIE-LABlab(21.58, 24.72, -27.65)
CIE-LCHlch(21.58, 37.08, 311.80°)
OKLaboklab(33.43% 0.0543 -0.0778)
OKLCHoklch(33.43% 0.095 304.9)
XYZxyz(4.9476, 3.3996, 10.7493)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42275D #425D27
analogous
#27275D #42275D #5D275D
triadic
#42275D #5D4227 #275D42
tetradic
#42275D #5D2727 #425D27 #275D5D
square
#42275D #5D2727 #425D27 #275D5D
split-complementary
#42275D #5D5D27 #275D27
monochromatic
#0F0916 #231532 #42275D #613988 #7F4BB3

Accessibility & contrast

On white

12.50
#42275D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#42275D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42275D
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42275D#FFFFFF#000000##FFFFFF
##42275D1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14335F
Deuteranopia (green-blind)
#1D345C
Tritanopia (blue-blind)
#3D313E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #42275d;
/* rgb */ color: rgb(66, 39, 93);
/* oklch */ color: oklch(33.4% 0.095 304.9);
Tailwind
colors: {
  custom: {
    50: '#78628b',
    500: '#42275d',
    950: '#000000',
  },
}
SCSS
$custom: #42275d;
$custom-light: #78628b;
$custom-dark: #000000;
JSON
{
  "hex": "#42275d",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 93
  },
  "hsl": {
    "h": 270,
    "s": 40.909,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33432,
    "c": 0.09488,
    "h": 304.9
  },
  "luminance": 0.034
}

Semantic roles & 50–950 ramp

primary
#42275D
secondary
#709050
accent
#D15794
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #42275D

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

Preview Lab → · Contrast checker → · Palette generator →

#42275D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva