#831238#831238

#831238 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.0% C 0.147 H 8.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#831238
RGBrgb(131, 18, 56)
HSLhsl(340, 76%, 29%)
HSVhsv(340, 86%, 51%)
CMYKcmyk(0%, 86.3%, 57.3%, 48.6%)
CIE-LABlab(28.23, 47.65, 8.32)
CIE-LCHlch(28.23, 48.37, 9.91°)
OKLaboklab(40.03% 0.1451 0.0211)
OKLCHoklch(40.03% 0.147 8.3)
XYZxyz(10.2912, 5.5450, 4.2690)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831238 #12835D
analogous
#831271 #831238 #832512
triadic
#831238 #388312 #123883
tetradic
#831238 #718312 #12835D #251283
square
#831238 #718312 #12835D #251283
split-complementary
#831238 #128325 #127183
monochromatic
#1B040C #4D0B21 #831238 #B9194F #E22D6A

Accessibility & contrast

On white

9.96
#831238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#831238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831238
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831238#FFFFFF#000000##FFFFFF
##8312381.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333439
Deuteranopia (green-blind)
#504B35
Tritanopia (blue-blind)
#900024
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #831238;
/* rgb */ color: rgb(131, 18, 56);
/* oklch */ color: oklch(40.0% 0.147 8.3);
Tailwind
colors: {
  custom: {
    50: '#ad5f6e',
    500: '#831238',
    950: '#000000',
  },
}
SCSS
$custom: #831238;
$custom-light: #ad5f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#831238",
  "rgb": {
    "r": 131,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 339.823,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40029,
    "c": 0.14661,
    "h": 8.3
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#831238
secondary
#38B88D
accent
#F2B335
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110507
muted
#80797A

Preview Lab

Preview with #831238

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

Preview Lab → · Contrast checker → · Palette generator →

#831238 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva