#B02540#B02540

#B02540 is a mid, vivid red. Relative luminance 0.109; OKLCH L 50.0% C 0.174 H 16.0°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#B02540
RGBrgb(176, 37, 64)
HSLhsl(348, 65%, 42%)
HSVhsv(348, 79%, 69%)
CMYKcmyk(0%, 79%, 63.6%, 31%)
CIE-LABlab(39.46, 55.83, 19.79)
CIE-LCHlch(39.46, 59.23, 19.52°)
OKLaboklab(50% 0.1669 0.0478)
OKLCHoklch(50% 0.174 16)
XYZxyz(19.4936, 10.9264, 5.9321)
Luminance0.1092 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02540 #25B095
analogous
#B02586 #B02540 #B04F25
triadic
#B02540 #40B025 #2540B0
tetradic
#B02540 #86B025 #25B095 #4F25B0
square
#B02540 #86B025 #25B095 #4F25B0
split-complementary
#B02540 #25B04F #2586B0
monochromatic
#4B101B #7D1A2E #B02540 #D63C5A #E16F85

Accessibility & contrast

On white

6.59
#B02540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#B02540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02540
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02540#FFFFFF#000000##FFFFFF
##B025401.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4A40
Deuteranopia (green-blind)
#71673C
Tritanopia (blue-blind)
#C10031
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b02540;
/* rgb */ color: rgb(176, 37, 64);
/* oklch */ color: oklch(50.0% 0.174 16.0);
Tailwind
colors: {
  custom: {
    50: '#cf6d74',
    500: '#b02540',
    950: '#000000',
  },
}
SCSS
$custom: #b02540;
$custom-light: #cf6d74;
$custom-dark: #000000;
JSON
{
  "hex": "#b02540",
  "rgb": {
    "r": 176,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 348.345,
    "s": 65.258,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49996,
    "c": 0.17363,
    "h": 16
  },
  "luminance": 0.10923
}

Semantic roles & 50–950 ramp

primary
#B02540
secondary
#6AC7B5
accent
#E8C740
background
#FDF7F7
surface
#FBEDED
border
#D4C8C8
text
#150808
muted
#837B7B

Preview Lab

Preview with #B02540

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

Preview Lab → · Contrast checker → · Palette generator →

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