#38125A#38125A

#38125A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.121 H 303.5°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#38125A
RGBrgb(56, 18, 90)
HSLhsl(272, 67%, 21%)
HSVhsv(272, 80%, 35%)
CMYKcmyk(37.8%, 80%, 0%, 64.7%)
CIE-LABlab(15.55, 33.35, -35.43)
CIE-LCHlch(15.55, 48.66, 313.27°)
OKLaboklab(28.69% 0.0668 -0.101)
OKLCHoklch(28.69% 0.121 303.5)
XYZxyz(3.6922, 2.0116, 9.8646)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38125A #345A12
analogous
#14125A #38125A #5A1258
triadic
#38125A #5A3812 #125A38
tetradic
#38125A #5A1412 #345A12 #12585A
square
#38125A #5A1412 #345A12 #12585A
split-complementary
#38125A #585A12 #125A14
monochromatic
#10051A #180827 #38125A #581C8D #7726C0

Accessibility & contrast

On white

14.97
#38125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#38125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38125A
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38125A#FFFFFF#000000##FFFFFF
##38125A1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#312435
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #38125a;
/* rgb */ color: rgb(56, 18, 90);
/* oklch */ color: oklch(28.7% 0.121 303.5);
Tailwind
colors: {
  custom: {
    50: '#735489',
    500: '#38125a',
    950: '#000000',
  },
}
SCSS
$custom: #38125a;
$custom-light: #735489;
$custom-dark: #000000;
JSON
{
  "hex": "#38125a",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 271.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28695,
    "c": 0.12106,
    "h": 303.5
  },
  "luminance": 0.02012
}

Semantic roles & 50–950 ramp

primary
#38125A
secondary
#619335
accent
#EA3E8F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #38125A

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

Preview Lab → · Contrast checker → · Palette generator →

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