#38125E#38125E

#38125E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.126 H 301.6°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#38125E
RGBrgb(56, 18, 94)
HSLhsl(270, 68%, 22%)
HSVhsv(270, 81%, 37%)
CMYKcmyk(40.4%, 80.9%, 0%, 63.1%)
CIE-LABlab(15.91, 34.43, -37.52)
CIE-LCHlch(15.91, 50.93, 312.54°)
OKLaboklab(29.06% 0.0658 -0.1071)
OKLCHoklch(29.06% 0.126 301.6)
XYZxyz(3.8671, 2.0815, 10.7855)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38125E #385E12
analogous
#12125E #38125E #5E125E
triadic
#38125E #5E3812 #125E38
tetradic
#38125E #5E1212 #385E12 #125E5E
square
#38125E #5E1212 #385E12 #125E5E
split-complementary
#38125E #5E5E12 #125E12
monochromatic
#0F051A #19082B #38125E #571C91 #7526C5

Accessibility & contrast

On white

14.83
#38125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#38125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38125E
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38125E#FFFFFF#000000##FFFFFF
##38125E1.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)
#002760
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#302637
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38125e;
/* rgb */ color: rgb(56, 18, 94);
/* oklch */ color: oklch(29.1% 0.126 301.6);
Tailwind
colors: {
  custom: {
    50: '#73548c',
    500: '#38125e',
    950: '#000000',
  },
}
SCSS
$custom: #38125e;
$custom-light: #73548c;
$custom-dark: #000000;
JSON
{
  "hex": "#38125e",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 270,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29062,
    "c": 0.12569,
    "h": 301.6
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#38125E
secondary
#669635
accent
#EB3D94
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38125E

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

Preview Lab → · Contrast checker → · Palette generator →

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