#38255B#38255B

#38255B is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.7% C 0.093 H 297.0°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#38255B
RGBrgb(56, 37, 91)
HSLhsl(261, 42%, 25%)
HSVhsv(261, 59%, 36%)
CMYKcmyk(38.5%, 59.3%, 0%, 64.3%)
CIE-LABlab(19.72, 22.54, -29.37)
CIE-LCHlch(19.72, 37.02, 307.51°)
OKLaboklab(31.73% 0.0424 -0.0832)
OKLCHoklch(31.73% 0.093 297)
XYZxyz(4.1803, 2.9192, 10.2387)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38255B #485B25
analogous
#252D5B #38255B #53255B
triadic
#38255B #5B3825 #255B38
tetradic
#38255B #5B252D #485B25 #255B53
square
#38255B #5B252D #485B25 #255B53
split-complementary
#38255B #5B5325 #2D5B25
monochromatic
#0D0916 #1D132F #38255B #533787 #6E48B2

Accessibility & contrast

On white

13.26
#38255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#38255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38255B
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38255B#FFFFFF#000000##FFFFFF
##38255B1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D305D
Deuteranopia (green-blind)
#132F5A
Tritanopia (blue-blind)
#30303C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38255b;
/* rgb */ color: rgb(56, 37, 91);
/* oklch */ color: oklch(31.7% 0.093 297.0);
Tailwind
colors: {
  custom: {
    50: '#71608a',
    500: '#38255b',
    950: '#000000',
  },
}
SCSS
$custom: #38255b;
$custom-light: #71608a;
$custom-dark: #000000;
JSON
{
  "hex": "#38255b",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 261.111,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31733,
    "c": 0.09337,
    "h": 297
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#38255B
secondary
#788E4D
accent
#D256A6
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050B
muted
#7B797C

Preview Lab

Preview with #38255B

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

Preview Lab → · Contrast checker → · Palette generator →

#38255B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva