#38135F#38135F

#38135F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.126 H 300.9°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#38135F
RGBrgb(56, 19, 95)
HSLhsl(269, 67%, 22%)
HSVhsv(269, 80%, 37%)
CMYKcmyk(41.1%, 80%, 0%, 62.7%)
CIE-LABlab(16.17, 34.22, -37.77)
CIE-LCHlch(16.17, 50.96, 312.18°)
OKLaboklab(29.27% 0.0645 -0.1078)
OKLCHoklch(29.27% 0.126 300.9)
XYZxyz(3.9288, 2.1327, 11.0289)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38135F #3A5F13
analogous
#13145F #38135F #5E135F
triadic
#38135F #5F3813 #135F38
tetradic
#38135F #5F1314 #3A5F13 #135F5E
square
#38135F #5F1314 #3A5F13 #135F5E
split-complementary
#38135F #5F5E13 #145F13
monochromatic
#0F051A #1A092C #38135F #561D92 #7427C5

Accessibility & contrast

On white

14.72
#38135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#38135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38135F
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38135F#FFFFFF#000000##FFFFFF
##38135F1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#2F2738
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38135f;
/* rgb */ color: rgb(56, 19, 95);
/* oklch */ color: oklch(29.3% 0.126 300.9);
Tailwind
colors: {
  custom: {
    50: '#73558d',
    500: '#38135f',
    950: '#000000',
  },
}
SCSS
$custom: #38135f;
$custom-light: #73558d;
$custom-dark: #000000;
JSON
{
  "hex": "#38135f",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 269.211,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29273,
    "c": 0.12566,
    "h": 300.9
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#38135F
secondary
#689737
accent
#EA3E96
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38135F

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

Preview Lab → · Contrast checker → · Palette generator →

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