#38155C#38155C

#38155C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.3% C 0.120 H 301.9°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#38155C
RGBrgb(56, 21, 92)
HSLhsl(270, 63%, 22%)
HSVhsv(270, 77%, 36%)
CMYKcmyk(39.1%, 77.2%, 0%, 63.9%)
CIE-LABlab(16.25, 32.40, -35.62)
CIE-LCHlch(16.25, 48.15, 312.28°)
OKLaboklab(29.25% 0.0631 -0.1015)
OKLCHoklch(29.25% 0.12 301.9)
XYZxyz(3.8304, 2.1498, 10.3363)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38155C #395C15
analogous
#15165C #38155C #5C155C
triadic
#38155C #5C3815 #155C38
tetradic
#38155C #5C1516 #395C15 #155C5C
square
#38155C #5C1516 #395C15 #155C5C
split-complementary
#38155C #5C5C15 #165C15
monochromatic
#0F0619 #1A0A2A #38155C #56208E #752CC0

Accessibility & contrast

On white

14.69
#38155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#38155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38155C
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38155C#FFFFFF#000000##FFFFFF
##38155C1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38155c;
/* rgb */ color: rgb(56, 21, 92);
/* oklch */ color: oklch(29.3% 0.120 301.9);
Tailwind
colors: {
  custom: {
    50: '#73568b',
    500: '#38155c',
    950: '#000000',
  },
}
SCSS
$custom: #38155c;
$custom-light: #73568b;
$custom-dark: #000000;
JSON
{
  "hex": "#38155c",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 269.577,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2925,
    "c": 0.11956,
    "h": 301.9
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#38155C
secondary
#679339
accent
#E64295
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38155C

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

Preview Lab → · Contrast checker → · Palette generator →

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