#38175C#38175C

#38175C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.117 H 301.4°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#38175C
RGBrgb(56, 23, 92)
HSLhsl(269, 60%, 23%)
HSVhsv(269, 75%, 36%)
CMYKcmyk(39.1%, 75%, 0%, 63.9%)
CIE-LABlab(16.63, 31.34, -35.01)
CIE-LCHlch(16.63, 46.99, 311.83°)
OKLaboklab(29.52% 0.0608 -0.0997)
OKLCHoklch(29.52% 0.117 301.4)
XYZxyz(3.8686, 2.2262, 10.3490)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38175C #3B5C17
analogous
#17185C #38175C #5B175C
triadic
#38175C #5C3817 #175C38
tetradic
#38175C #5C1718 #3B5C17 #175C5B
square
#38175C #5C1718 #3B5C17 #175C5B
split-complementary
#38175C #5C5B17 #185C17
monochromatic
#0F0618 #1A0B2B #38175C #56238D #742FBE

Accessibility & contrast

On white

14.53
#38175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#38175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38175C
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38175C#FFFFFF#000000##FFFFFF
##38175C1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#302737
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #38175c;
/* rgb */ color: rgb(56, 23, 92);
/* oklch */ color: oklch(29.5% 0.117 301.4);
Tailwind
colors: {
  custom: {
    50: '#72578b',
    500: '#38175c',
    950: '#000000',
  },
}
SCSS
$custom: #38175c;
$custom-light: #72578b;
$custom-dark: #000000;
JSON
{
  "hex": "#38175c",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 268.696,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29518,
    "c": 0.11684,
    "h": 301.4
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#38175C
secondary
#69933C
accent
#E34597
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38175C

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

Preview Lab → · Contrast checker → · Palette generator →

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