#38125C#38125C

#38125C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.123 H 302.5°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#38125C
RGBrgb(56, 18, 92)
HSLhsl(271, 67%, 22%)
HSVhsv(271, 80%, 36%)
CMYKcmyk(39.1%, 80.4%, 0%, 63.9%)
CIE-LABlab(15.73, 33.89, -36.48)
CIE-LCHlch(15.73, 49.80, 312.89°)
OKLaboklab(28.88% 0.0663 -0.104)
OKLCHoklch(28.88% 0.123 302.5)
XYZxyz(3.7785, 2.0461, 10.3190)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38125C #365C12
analogous
#13125C #38125C #5C125B
triadic
#38125C #5C3812 #125C38
tetradic
#38125C #5C1312 #365C12 #125B5C
square
#38125C #5C1312 #365C12 #125B5C
split-complementary
#38125C #5B5C12 #125C13
monochromatic
#10051A #190829 #38125C #571C8F #7626C2

Accessibility & contrast

On white

14.90
#38125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38125C
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38125C#FFFFFF#000000##FFFFFF
##38125C1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38125c;
/* rgb */ color: rgb(56, 18, 92);
/* oklch */ color: oklch(28.9% 0.123 302.5);
Tailwind
colors: {
  custom: {
    50: '#73548b',
    500: '#38125c',
    950: '#000000',
  },
}
SCSS
$custom: #38125c;
$custom-light: #73548b;
$custom-dark: #000000;
JSON
{
  "hex": "#38125c",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 270.811,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28877,
    "c": 0.12338,
    "h": 302.5
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#38125C
secondary
#649435
accent
#EA3E92
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38125C

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

Preview Lab → · Contrast checker → · Palette generator →

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