#3F125D#3F125D

#3F125D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.126 H 307.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#3F125D
RGBrgb(63, 18, 93)
HSLhsl(276, 68%, 22%)
HSVhsv(276, 81%, 36%)
CMYKcmyk(32.3%, 80.6%, 0%, 63.5%)
CIE-LABlab(16.89, 35.58, -35.21)
CIE-LCHlch(16.89, 50.05, 315.30°)
OKLaboklab(29.95% 0.0771 -0.1)
OKLCHoklch(29.95% 0.126 307.6)
XYZxyz(4.2416, 2.2797, 10.5704)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F125D #305D12
analogous
#1A125D #3F125D #5D1256
triadic
#3F125D #5D3F12 #125D3F
tetradic
#3F125D #5D1A12 #305D12 #12565D
square
#3F125D #5D1A12 #305D12 #12565D
split-complementary
#3F125D #565D12 #125D1A
monochromatic
#11051A #1C082A #3F125D #621C90 #8426C4

Accessibility & contrast

On white

14.42
#3F125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3F125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F125D
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F125D#FFFFFF#000000##FFFFFF
##3F125D1.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)
#00285F
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#3A2437
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f125d;
/* rgb */ color: rgb(63, 18, 93);
/* oklch */ color: oklch(30.0% 0.126 307.6);
Tailwind
colors: {
  custom: {
    50: '#78558b',
    500: '#3f125d',
    950: '#000000',
  },
}
SCSS
$custom: #3f125d;
$custom-light: #78558b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f125d",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 276,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29954,
    "c": 0.1263,
    "h": 307.6
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#3F125D
secondary
#5C9535
accent
#EA3D83
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F125D

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

Preview Lab → · Contrast checker → · Palette generator →

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