#3F125E#3F125E

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

Color values

HEX#3F125E
RGBrgb(63, 18, 94)
HSLhsl(276, 68%, 22%)
HSVhsv(276, 81%, 37%)
CMYKcmyk(33%, 80.9%, 0%, 63.1%)
CIE-LABlab(16.98, 35.83, -35.74)
CIE-LCHlch(16.98, 50.60, 315.07°)
OKLaboklab(30.04% 0.0769 -0.1016)
OKLCHoklch(30.04% 0.127 307.1)
XYZxyz(4.2862, 2.2976, 10.8052)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F125E #315E12
analogous
#19125E #3F125E #5E1257
triadic
#3F125E #5E3F12 #125E3F
tetradic
#3F125E #5E1912 #315E12 #12575E
square
#3F125E #5E1912 #315E12 #12575E
split-complementary
#3F125E #575E12 #125E19
monochromatic
#11051A #1D082B #3F125E #611C91 #8426C5

Accessibility & contrast

On white

14.39
#3F125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F125E
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F125E#FFFFFF#000000##FFFFFF
##3F125E1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#3A2537
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f125e;
/* rgb */ color: rgb(63, 18, 94);
/* oklch */ color: oklch(30.0% 0.127 307.1);
Tailwind
colors: {
  custom: {
    50: '#78558c',
    500: '#3f125e',
    950: '#000000',
  },
}
SCSS
$custom: #3f125e;
$custom-light: #78558c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f125e",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 275.526,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30041,
    "c": 0.12739,
    "h": 307.1
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#3F125E
secondary
#5D9635
accent
#EB3D84
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F125E

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

Preview Lab → · Contrast checker → · Palette generator →

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