#38125D#38125D

#38125D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.125 H 302.0°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#38125D
RGBrgb(56, 18, 93)
HSLhsl(270, 68%, 22%)
HSVhsv(270, 81%, 36%)
CMYKcmyk(39.8%, 80.6%, 0%, 63.5%)
CIE-LABlab(15.82, 34.16, -37.00)
CIE-LCHlch(15.82, 50.36, 312.71°)
OKLaboklab(28.97% 0.0661 -0.1056)
OKLCHoklch(28.97% 0.125 302)
XYZxyz(3.8225, 2.0637, 10.5507)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38125D #375D12
analogous
#13125D #38125D #5D125D
triadic
#38125D #5D3812 #125D38
tetradic
#38125D #5D1312 #375D12 #125D5D
square
#38125D #5D1312 #375D12 #125D5D
split-complementary
#38125D #5D5D12 #125D13
monochromatic
#0F051A #19082A #38125D #571C90 #7626C4

Accessibility & contrast

On white

14.86
#38125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#38125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38125D
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38125D#FFFFFF#000000##FFFFFF
##38125D1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#302537
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38125d;
/* rgb */ color: rgb(56, 18, 93);
/* oklch */ color: oklch(29.0% 0.125 302.0);
Tailwind
colors: {
  custom: {
    50: '#73548c',
    500: '#38125d',
    950: '#000000',
  },
}
SCSS
$custom: #38125d;
$custom-light: #73548c;
$custom-dark: #000000;
JSON
{
  "hex": "#38125d",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 270.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28969,
    "c": 0.12453,
    "h": 302
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#38125D
secondary
#659535
accent
#EA3D93
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38125D

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

Preview Lab → · Contrast checker → · Palette generator →

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