#98791C#98791C

#98791C is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 59.0% C 0.111 H 88.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#98791C
RGBrgb(152, 121, 28)
HSLhsl(45, 69%, 35%)
HSVhsv(45, 82%, 60%)
CMYKcmyk(0%, 20.4%, 81.6%, 40.4%)
CIE-LABlab(52.33, 2.87, 51.37)
CIE-LCHlch(52.33, 51.46, 86.80°)
OKLaboklab(59.01% 0.0022 0.1112)
OKLCHoklch(59.01% 0.111 88.9)
XYZxyz(19.9971, 20.4353, 3.9896)
Luminance0.2043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98791C #1C3B98
analogous
#983B1C #98791C #79981C
triadic
#98791C #1C9879 #791C98
tetradic
#98791C #1C983B #1C3B98 #981C79
square
#98791C #1C983B #1C3B98 #981C79
split-complementary
#98791C #1C7998 #3B1C98
monochromatic
#312709 #645012 #98791C #CCA226 #DFBB50

Accessibility & contrast

On white

4.13
#98791C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#98791C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #98791C
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98791C#FFFFFF#000000##000000
##98791C1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887806
Deuteranopia (green-blind)
#908022
Tritanopia (blue-blind)
#A56E68
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #98791c;
/* rgb */ color: rgb(152, 121, 28);
/* oklch */ color: oklch(59.0% 0.111 88.9);
Tailwind
colors: {
  custom: {
    50: '#bb9f61',
    500: '#98791c',
    950: '#000000',
  },
}
SCSS
$custom: #98791c;
$custom-light: #bb9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#98791c",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 45,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59011,
    "c": 0.11121,
    "h": 88.9
  },
  "luminance": 0.20434
}

Semantic roles & 50–950 ramp

primary
#98791C
secondary
#4E6BC1
accent
#68EC3C
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #98791C

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

Preview Lab → · Contrast checker → · Palette generator →

#98791C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva