#942838#942838

#942838 is a mid, vivid red. Relative luminance 0.081; OKLCH L 45.1% C 0.143 H 16.8°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#942838
RGBrgb(148, 40, 56)
HSLhsl(351, 57%, 37%)
HSVhsv(351, 73%, 58%)
CMYKcmyk(0%, 73%, 62.2%, 42%)
CIE-LABlab(34.19, 45.73, 16.96)
CIE-LCHlch(34.19, 48.77, 20.35°)
OKLaboklab(45.05% 0.1367 0.0413)
OKLCHoklch(45.05% 0.143 16.8)
XYZxyz(13.6867, 8.1010, 4.5836)
Luminance0.0810 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942838 #289484
analogous
#94286E #942838 #944E28
triadic
#942838 #389428 #283894
tetradic
#942838 #6E9428 #289484 #4E2894
square
#942838 #6E9428 #289484 #4E2894
split-complementary
#942838 #28944E #286E94
monochromatic
#340E14 #641B26 #942838 #C4354A #D56273

Accessibility & contrast

On white

8.02
#942838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#942838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942838
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942838#FFFFFF#000000##FFFFFF
##9428381.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454238
Deuteranopia (green-blind)
#605935
Tritanopia (blue-blind)
#A2082F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #942838;
/* rgb */ color: rgb(148, 40, 56);
/* oklch */ color: oklch(45.1% 0.143 16.8);
Tailwind
colors: {
  custom: {
    50: '#ba6a6e',
    500: '#942838',
    950: '#000000',
  },
}
SCSS
$custom: #942838;
$custom-light: #ba6a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#942838",
  "rgb": {
    "r": 148,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 351.111,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45053,
    "c": 0.14278,
    "h": 16.8
  },
  "luminance": 0.08099
}

Semantic roles & 50–950 ramp

primary
#942838
secondary
#5EBAAC
accent
#E1CA47
background
#FCF6F6
surface
#F8ECEB
border
#D1C7C6
text
#130707
muted
#827A7A

Preview Lab

Preview with #942838

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

Preview Lab → · Contrast checker → · Palette generator →

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