#AF2540#AF2540

#AF2540 is a mid, vivid red. Relative luminance 0.108; OKLCH L 49.8% C 0.173 H 15.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#AF2540
RGBrgb(175, 37, 64)
HSLhsl(348, 65%, 42%)
HSVhsv(348, 79%, 69%)
CMYKcmyk(0%, 78.9%, 63.4%, 31.4%)
CIE-LABlab(39.26, 55.54, 19.50)
CIE-LCHlch(39.26, 58.86, 19.35°)
OKLaboklab(49.81% 0.1661 0.0471)
OKLCHoklch(49.81% 0.173 15.8)
XYZxyz(19.2682, 10.8102, 5.9215)
Luminance0.1081 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2540 #25AF94
analogous
#AF2585 #AF2540 #AF4F25
triadic
#AF2540 #40AF25 #2540AF
tetradic
#AF2540 #85AF25 #25AF94 #4F25AF
square
#AF2540 #85AF25 #25AF94 #4F25AF
split-complementary
#AF2540 #25AF4F #2585AF
monochromatic
#4A101B #7C1A2E #AF2540 #D63C5A #E06E84

Accessibility & contrast

On white

6.64
#AF2540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#AF2540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2540
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2540#FFFFFF#000000##FFFFFF
##AF25401.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4A40
Deuteranopia (green-blind)
#70673C
Tritanopia (blue-blind)
#C00031
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #af2540;
/* rgb */ color: rgb(175, 37, 64);
/* oklch */ color: oklch(49.8% 0.173 15.8);
Tailwind
colors: {
  custom: {
    50: '#ce6d74',
    500: '#af2540',
    950: '#000000',
  },
}
SCSS
$custom: #af2540;
$custom-light: #ce6d74;
$custom-dark: #000000;
JSON
{
  "hex": "#af2540",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 348.261,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49814,
    "c": 0.17268,
    "h": 15.8
  },
  "luminance": 0.10807
}

Semantic roles & 50–950 ramp

primary
#AF2540
secondary
#69C7B4
accent
#E8C740
background
#FDF7F7
surface
#FBEDED
border
#D4C8C8
text
#150808
muted
#837B7B

Preview Lab

Preview with #AF2540

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

Preview Lab → · Contrast checker → · Palette generator →

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