#38125B#38125B

#38125B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.122 H 303.0°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#38125B
RGBrgb(56, 18, 91)
HSLhsl(271, 67%, 21%)
HSVhsv(271, 80%, 36%)
CMYKcmyk(38.5%, 80.2%, 0%, 64.3%)
CIE-LABlab(15.64, 33.62, -35.96)
CIE-LCHlch(15.64, 49.23, 313.08°)
OKLaboklab(28.79% 0.0666 -0.1025)
OKLCHoklch(28.79% 0.122 303)
XYZxyz(3.7351, 2.0287, 10.0903)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38125B #355B12
analogous
#14125B #38125B #5B125A
triadic
#38125B #5B3812 #125B38
tetradic
#38125B #5B1412 #355B12 #125A5B
square
#38125B #5B1412 #355B12 #125A5B
split-complementary
#38125B #5A5B12 #125B14
monochromatic
#10051A #190828 #38125B #571C8E #7726C1

Accessibility & contrast

On white

14.94
#38125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38125B
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38125B#FFFFFF#000000##FFFFFF
##38125B1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#312435
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38125b;
/* rgb */ color: rgb(56, 18, 91);
/* oklch */ color: oklch(28.8% 0.122 303.0);
Tailwind
colors: {
  custom: {
    50: '#73548a',
    500: '#38125b',
    950: '#000000',
  },
}
SCSS
$custom: #38125b;
$custom-light: #73548a;
$custom-dark: #000000;
JSON
{
  "hex": "#38125b",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 271.233,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28786,
    "c": 0.12222,
    "h": 303
  },
  "luminance": 0.02029
}

Semantic roles & 50–950 ramp

primary
#38125B
secondary
#629335
accent
#EA3E90
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38125B

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

Preview Lab → · Contrast checker → · Palette generator →

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