#987228#987228

#987228 is a mid, moderate orange. Relative luminance 0.189; OKLCH L 57.6% C 0.101 H 80.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#987228
RGBrgb(152, 114, 40)
HSLhsl(40, 58%, 38%)
HSVhsv(40, 74%, 60%)
CMYKcmyk(0%, 25%, 73.7%, 40.4%)
CIE-LABlab(50.53, 7.38, 44.90)
CIE-LCHlch(50.53, 45.50, 80.67°)
OKLaboklab(57.62% 0.0166 0.1)
OKLCHoklch(57.62% 0.101 80.6)
XYZxyz(19.3504, 18.8647, 4.6292)
Luminance0.1886 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987228 #284E98
analogous
#983A28 #987228 #869828
triadic
#987228 #289872 #722898
tetradic
#987228 #28983A #284E98 #982886
square
#987228 #28983A #284E98 #982886
split-complementary
#987228 #288698 #3A2898
monochromatic
#37290F #684E1B #987228 #C89635 #D6B064

Accessibility & contrast

On white

4.40
#987228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#987228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987228
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987228#FFFFFF#000000##000000
##9872281.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#81731E
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#A56763
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #987228;
/* rgb */ color: rgb(152, 114, 40);
/* oklch */ color: oklch(57.6% 0.101 80.6);
Tailwind
colors: {
  custom: {
    50: '#ba9a67',
    500: '#987228',
    950: '#000000',
  },
}
SCSS
$custom: #987228;
$custom-light: #ba9a67;
$custom-dark: #000000;
JSON
{
  "hex": "#987228",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 39.643,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57624,
    "c": 0.10134,
    "h": 80.6
  },
  "luminance": 0.18863
}

Semantic roles & 50–950 ramp

primary
#987228
secondary
#607FBC
accent
#7BE246
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987228

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

Preview Lab → · Contrast checker → · Palette generator →

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