#38175F#38175F

#38175F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.121 H 300.0°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#38175F
RGBrgb(56, 23, 95)
HSLhsl(268, 61%, 23%)
HSVhsv(268, 76%, 37%)
CMYKcmyk(41.1%, 75.8%, 0%, 62.7%)
CIE-LABlab(16.89, 32.18, -36.59)
CIE-LCHlch(16.89, 48.73, 311.33°)
OKLaboklab(29.78% 0.0603 -0.1044)
OKLCHoklch(29.78% 0.121 300)
XYZxyz(4.0023, 2.2797, 11.0534)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38175F #3E5F17
analogous
#171A5F #38175F #5C175F
triadic
#38175F #5F3817 #175F38
tetradic
#38175F #5F171A #3E5F17 #175F5C
square
#38175F #5F171A #3E5F17 #175F5C
split-complementary
#38175F #5F5C17 #1A5F17
monochromatic
#0F0619 #1B0B2E #38175F #552390 #722FC2

Accessibility & contrast

On white

14.42
#38175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#38175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38175F
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38175F#FFFFFF#000000##FFFFFF
##38175F1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#2F2939
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #38175f;
/* rgb */ color: rgb(56, 23, 95);
/* oklch */ color: oklch(29.8% 0.121 300.0);
Tailwind
colors: {
  custom: {
    50: '#73578d',
    500: '#38175f',
    950: '#000000',
  },
}
SCSS
$custom: #38175f;
$custom-light: #73578d;
$custom-dark: #000000;
JSON
{
  "hex": "#38175f",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 267.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29784,
    "c": 0.12053,
    "h": 300
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#38175F
secondary
#6D963C
accent
#E4449B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38175F

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

Preview Lab → · Contrast checker → · Palette generator →

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