#38135C#38135C

#38135C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.122 H 302.3°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#38135C
RGBrgb(56, 19, 92)
HSLhsl(270, 66%, 22%)
HSVhsv(270, 79%, 36%)
CMYKcmyk(39.1%, 79.3%, 0%, 63.9%)
CIE-LABlab(15.90, 33.41, -36.21)
CIE-LCHlch(15.90, 49.26, 312.70°)
OKLaboklab(29% 0.0653 -0.1032)
OKLCHoklch(29% 0.122 302.3)
XYZxyz(3.7951, 2.0792, 10.3245)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38135C #375C13
analogous
#14135C #38135C #5C135C
triadic
#38135C #5C3813 #135C38
tetradic
#38135C #5C1413 #375C13 #135C5C
square
#38135C #5C1413 #375C13 #135C5C
split-complementary
#38135C #5C5C13 #135C14
monochromatic
#0F0519 #190929 #38135C #571D8F #7628C1

Accessibility & contrast

On white

14.83
#38135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#38135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38135C
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38135C#FFFFFF#000000##FFFFFF
##38135C1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#302536
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38135c;
/* rgb */ color: rgb(56, 19, 92);
/* oklch */ color: oklch(29.0% 0.122 302.3);
Tailwind
colors: {
  custom: {
    50: '#73558b',
    500: '#38135c',
    950: '#000000',
  },
}
SCSS
$custom: #38135c;
$custom-light: #73558b;
$custom-dark: #000000;
JSON
{
  "hex": "#38135c",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 270.411,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28997,
    "c": 0.12214,
    "h": 302.3
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#38135C
secondary
#659437
accent
#E93F93
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38135C

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

Preview Lab → · Contrast checker → · Palette generator →

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