#98791B#98791B

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

Color values

HEX#98791B
RGBrgb(152, 121, 27)
HSLhsl(45, 70%, 35%)
HSVhsv(45, 82%, 60%)
CMYKcmyk(0%, 20.4%, 82.2%, 40.4%)
CIE-LABlab(52.32, 2.84, 51.71)
CIE-LCHlch(52.32, 51.79, 86.86°)
OKLaboklab(59.01% 0.002 0.1117)
OKLCHoklch(59.01% 0.112 89)
XYZxyz(19.9853, 20.4306, 3.9276)
Luminance0.2043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98791B #1B3A98
analogous
#983B1B #98791B #78981B
triadic
#98791B #1B9879 #791B98
tetradic
#98791B #1B983B #1B3A98 #981B78
square
#98791B #1B983B #1B3A98 #981B78
split-complementary
#98791B #1B7898 #3B1B98
monochromatic
#302609 #645012 #98791B #CCA224 #E0BB4E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98791B#FFFFFF#000000##000000
##98791B1.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)
#887804
Deuteranopia (green-blind)
#908021
Tritanopia (blue-blind)
#A56E67
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #98791b;
/* rgb */ color: rgb(152, 121, 27);
/* oklch */ color: oklch(59.0% 0.112 89.0);
Tailwind
colors: {
  custom: {
    50: '#bb9f61',
    500: '#98791b',
    950: '#000000',
  },
}
SCSS
$custom: #98791b;
$custom-light: #bb9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#98791b",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 45.12,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59005,
    "c": 0.11171,
    "h": 89
  },
  "luminance": 0.20429
}

Semantic roles & 50–950 ramp

primary
#98791B
secondary
#4D6AC2
accent
#67ED3B
background
#FCF9F5
surface
#F8F2EA
border
#D1CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #98791B

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

Preview Lab → · Contrast checker → · Palette generator →

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