#48227F#48227F

#48227F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.147 H 297.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#48227F
RGBrgb(72, 34, 127)
HSLhsl(265, 58%, 32%)
HSVhsv(265, 73%, 50%)
CMYKcmyk(43.3%, 73.2%, 0%, 50.2%)
CIE-LABlab(23.85, 38.56, -45.89)
CIE-LCHlch(23.85, 59.94, 310.04°)
OKLaboklab(36.06% 0.067 -0.1312)
OKLCHoklch(36.06% 0.147 297)
XYZxyz(7.0743, 4.0539, 20.4843)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48227F #597F22
analogous
#222B7F #48227F #77227F
triadic
#48227F #7F4822 #227F48
tetradic
#48227F #7F222B #597F22 #227F77
square
#48227F #7F222B #597F22 #227F77
split-complementary
#48227F #7F7722 #2B7F22
monochromatic
#11081E #2D154F #48227F #632FAF #824CCF

Accessibility & contrast

On white

11.60
#48227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#48227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48227F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48227F#FFFFFF#000000##FFFFFF
##48227F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#3A394E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #48227f;
/* rgb */ color: rgb(72, 34, 127);
/* oklch */ color: oklch(36.1% 0.147 297.0);
Tailwind
colors: {
  custom: {
    50: '#8060a5',
    500: '#48227f',
    950: '#000000',
  },
}
SCSS
$custom: #48227f;
$custom-light: #8060a5;
$custom-dark: #000000;
JSON
{
  "hex": "#48227f",
  "rgb": {
    "r": 72,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 264.516,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36063,
    "c": 0.14729,
    "h": 297
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#48227F
secondary
#88B24B
accent
#E147A2
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48227F

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

Preview Lab → · Contrast checker → · Palette generator →

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