#3F125C#3F125C

#3F125C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.125 H 308.1°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#3F125C
RGBrgb(63, 18, 92)
HSLhsl(276, 67%, 22%)
HSVhsv(276, 80%, 36%)
CMYKcmyk(31.5%, 80.4%, 0%, 63.9%)
CIE-LABlab(16.81, 35.33, -34.68)
CIE-LCHlch(16.81, 49.50, 315.53°)
OKLaboklab(29.87% 0.0773 -0.0985)
OKLCHoklch(29.87% 0.125 308.1)
XYZxyz(4.1976, 2.2621, 10.3386)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F125C #2F5C12
analogous
#1A125C #3F125C #5C1254
triadic
#3F125C #5C3F12 #125C3F
tetradic
#3F125C #5C1A12 #2F5C12 #12545C
square
#3F125C #5C1A12 #2F5C12 #12545C
split-complementary
#3F125C #545C12 #125C1A
monochromatic
#12051A #1C0829 #3F125C #621C8F #8526C2

Accessibility & contrast

On white

14.46
#3F125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3F125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F125C
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F125C#FFFFFF#000000##FFFFFF
##3F125C1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#3A2436
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f125c;
/* rgb */ color: rgb(63, 18, 92);
/* oklch */ color: oklch(29.9% 0.125 308.1);
Tailwind
colors: {
  custom: {
    50: '#78558b',
    500: '#3f125c',
    950: '#000000',
  },
}
SCSS
$custom: #3f125c;
$custom-light: #78558b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f125c",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 276.486,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29867,
    "c": 0.1252,
    "h": 308.1
  },
  "luminance": 0.02262
}

Semantic roles & 50–950 ramp

primary
#3F125C
secondary
#5B9435
accent
#EA3E81
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F125C

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

Preview Lab → · Contrast checker → · Palette generator →

#3F125C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva