#3B125C#3B125C

#3B125C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.124 H 305.0°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#3B125C
RGBrgb(59, 18, 92)
HSLhsl(273, 67%, 22%)
HSVhsv(273, 80%, 36%)
CMYKcmyk(35.9%, 80.4%, 0%, 63.9%)
CIE-LABlab(16.18, 34.50, -35.72)
CIE-LCHlch(16.18, 49.66, 314.00°)
OKLaboklab(29.29% 0.0711 -0.1017)
OKLCHoklch(29.29% 0.124 305)
XYZxyz(3.9513, 2.1351, 10.3271)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B125C #335C12
analogous
#16125C #3B125C #5C1258
triadic
#3B125C #5C3B12 #125C3B
tetradic
#3B125C #5C1612 #335C12 #12585C
square
#3B125C #5C1612 #335C12 #12585C
split-complementary
#3B125C #585C12 #125C16
monochromatic
#10051A #1A0829 #3B125C #5C1C8F #7D26C2

Accessibility & contrast

On white

14.72
#3B125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3B125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B125C
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B125C#FFFFFF#000000##FFFFFF
##3B125C1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#352436
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b125c;
/* rgb */ color: rgb(59, 18, 92);
/* oklch */ color: oklch(29.3% 0.124 305.0);
Tailwind
colors: {
  custom: {
    50: '#75558b',
    500: '#3b125c',
    950: '#000000',
  },
}
SCSS
$custom: #3b125c;
$custom-light: #75558b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b125c",
  "rgb": {
    "r": 59,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 273.243,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29294,
    "c": 0.12408,
    "h": 305
  },
  "luminance": 0.02135
}

Semantic roles & 50–950 ramp

primary
#3B125C
secondary
#609435
accent
#EA3E8B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B125C

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

Preview Lab → · Contrast checker → · Palette generator →

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