#7A1238#7A1238

#7A1238 is a dark, vivid pink. Relative luminance 0.049; OKLCH L 38.3% C 0.139 H 5.8°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#7A1238
RGBrgb(122, 18, 56)
HSLhsl(338, 74%, 27%)
HSVhsv(338, 85%, 48%)
CMYKcmyk(0%, 85.2%, 54.1%, 52.2%)
CIE-LABlab(26.32, 45.10, 5.36)
CIE-LCHlch(26.32, 45.42, 6.78°)
OKLaboklab(38.29% 0.1379 0.014)
OKLCHoklch(38.29% 0.139 5.8)
XYZxyz(8.9570, 4.8570, 4.2065)
Luminance0.0486 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1238 #127A54
analogous
#7A126C #7A1238 #7A2012
triadic
#7A1238 #387A12 #12387A
tetradic
#7A1238 #6C7A12 #127A54 #20127A
square
#7A1238 #6C7A12 #127A54 #20127A
split-complementary
#7A1238 #127A20 #126C7A
monochromatic
#1B040C #450A20 #7A1238 #AF1A50 #DF276A

Accessibility & contrast

On white

10.65
#7A1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#7A1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1238
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1238#FFFFFF#000000##FFFFFF
##7A12381.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3139
Deuteranopia (green-blind)
#4A4636
Tritanopia (blue-blind)
#860023
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #7a1238;
/* rgb */ color: rgb(122, 18, 56);
/* oklch */ color: oklch(38.3% 0.139 5.8);
Tailwind
colors: {
  custom: {
    50: '#a65d6e',
    500: '#7a1238',
    950: '#000000',
  },
}
SCSS
$custom: #7a1238;
$custom-light: #a65d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1238",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 338.077,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.38288,
    "c": 0.13861,
    "h": 5.8
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#7A1238
secondary
#38B084
accent
#F1AD37
background
#FAF5F6
surface
#F4EAEB
border
#CEC6C6
text
#100507
muted
#7F797A

Preview Lab

Preview with #7A1238

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

Preview Lab → · Contrast checker → · Palette generator →

#7A1238 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva