#38125F#38125F

#38125F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.127 H 301.1°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#38125F
RGBrgb(56, 18, 95)
HSLhsl(270, 68%, 22%)
HSVhsv(270, 81%, 37%)
CMYKcmyk(41.1%, 81.1%, 0%, 62.7%)
CIE-LABlab(16.00, 34.70, -38.04)
CIE-LCHlch(16.00, 51.49, 312.37°)
OKLaboklab(29.15% 0.0655 -0.1086)
OKLCHoklch(29.15% 0.127 301.1)
XYZxyz(3.9122, 2.0996, 11.0234)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38125F #395F12
analogous
#12135F #38125F #5F125F
triadic
#38125F #5F3812 #125F38
tetradic
#38125F #5F1213 #395F12 #125F5F
square
#38125F #5F1213 #395F12 #125F5F
split-complementary
#38125F #5F5F12 #135F12
monochromatic
#0F051A #1A082C #38125F #561C92 #7525C6

Accessibility & contrast

On white

14.79
#38125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38125F
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38125F#FFFFFF#000000##FFFFFF
##38125F1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#2F2638
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38125f;
/* rgb */ color: rgb(56, 18, 95);
/* oklch */ color: oklch(29.2% 0.127 301.1);
Tailwind
colors: {
  custom: {
    50: '#73548d',
    500: '#38125f',
    950: '#000000',
  },
}
SCSS
$custom: #38125f;
$custom-light: #73548d;
$custom-dark: #000000;
JSON
{
  "hex": "#38125f",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 269.61,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29155,
    "c": 0.12684,
    "h": 301.1
  },
  "luminance": 0.021
}

Semantic roles & 50–950 ramp

primary
#38125F
secondary
#679736
accent
#EB3D95
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38125F

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

Preview Lab → · Contrast checker → · Palette generator →

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