#38145C#38145C

#38145C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.121 H 302.1°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#38145C
RGBrgb(56, 20, 92)
HSLhsl(270, 64%, 22%)
HSVhsv(270, 78%, 36%)
CMYKcmyk(39.1%, 78.3%, 0%, 63.9%)
CIE-LABlab(16.07, 32.91, -35.92)
CIE-LCHlch(16.07, 48.71, 312.49°)
OKLaboklab(29.12% 0.0642 -0.1024)
OKLCHoklch(29.12% 0.121 302.1)
XYZxyz(3.8123, 2.1138, 10.3303)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38145C #385C14
analogous
#14145C #38145C #5C145C
triadic
#38145C #5C3814 #145C38
tetradic
#38145C #5C1414 #385C14 #145C5C
square
#38145C #5C1414 #385C14 #145C5C
split-complementary
#38145C #5C5C14 #145C14
monochromatic
#0F0519 #19092A #38145C #571F8E #752AC1

Accessibility & contrast

On white

14.76
#38145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#38145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38145C
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38145C#FFFFFF#000000##FFFFFF
##38145C1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#302637
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38145c;
/* rgb */ color: rgb(56, 20, 92);
/* oklch */ color: oklch(29.1% 0.121 302.1);
Tailwind
colors: {
  custom: {
    50: '#73558b',
    500: '#38145c',
    950: '#000000',
  },
}
SCSS
$custom: #38145c;
$custom-light: #73558b;
$custom-dark: #000000;
JSON
{
  "hex": "#38145c",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 270,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29121,
    "c": 0.12087,
    "h": 302.1
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#38145C
secondary
#669438
accent
#E74194
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38145C

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

Preview Lab → · Contrast checker → · Palette generator →

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