#38106A#38106A

#38106A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.141 H 296.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#38106A
RGBrgb(56, 16, 106)
HSLhsl(267, 74%, 24%)
HSVhsv(267, 85%, 42%)
CMYKcmyk(47.2%, 84.9%, 0%, 58.4%)
CIE-LABlab(16.76, 38.57, -44.07)
CIE-LCHlch(16.76, 58.56, 311.19°)
OKLaboklab(30.01% 0.0638 -0.1263)
OKLCHoklch(30.01% 0.141 296.8)
XYZxyz(4.4170, 2.2518, 13.8348)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38106A #426A10
analogous
#10156A #38106A #65106A
triadic
#38106A #6A3810 #106A38
tetradic
#38106A #6A1015 #426A10 #106A65
square
#38106A #6A1015 #426A10 #106A65
split-complementary
#38106A #6A6510 #156A10
monochromatic
#0E041B #1C0835 #38106A #54189F #7020D4

Accessibility & contrast

On white

14.48
#38106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#38106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38106A
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38106A#FFFFFF#000000##FFFFFF
##38106A1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#2A2A3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38106a;
/* rgb */ color: rgb(56, 16, 106);
/* oklch */ color: oklch(30.0% 0.141 296.8);
Tailwind
colors: {
  custom: {
    50: '#755495',
    500: '#38106a',
    950: '#000000',
  },
}
SCSS
$custom: #38106a;
$custom-light: #755495;
$custom-dark: #000000;
JSON
{
  "hex": "#38106a",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 266.667,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30009,
    "c": 0.14149,
    "h": 296.8
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#38106A
secondary
#71A234
accent
#F0379E
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38106A

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

Preview Lab → · Contrast checker → · Palette generator →

#38106A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva