#97791F#97791F

#97791F is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.9% C 0.109 H 89.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#97791F
RGBrgb(151, 121, 31)
HSLhsl(45, 66%, 36%)
HSVhsv(45, 79%, 59%)
CMYKcmyk(0%, 19.9%, 79.5%, 40.8%)
CIE-LABlab(52.24, 2.52, 50.18)
CIE-LCHlch(52.24, 50.25, 87.12°)
OKLaboklab(58.92% 0.0016 0.1094)
OKLCHoklch(58.92% 0.109 89.2)
XYZxyz(19.8484, 20.3543, 4.1794)
Luminance0.2035 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97791F #1F3D97
analogous
#973D1F #97791F #79971F
triadic
#97791F #1F9779 #791F97
tetradic
#97791F #1F973D #1F3D97 #971F79
square
#97791F #1F973D #1F3D97 #971F79
split-complementary
#97791F #1F7997 #3D1F97
monochromatic
#31280A #645015 #97791F #CAA229 #DCBA54

Accessibility & contrast

On white

4.14
#97791F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#97791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97791F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97791F#FFFFFF#000000##000000
##97791F1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780D
Deuteranopia (green-blind)
#8F8024
Tritanopia (blue-blind)
#A46E68
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #97791f;
/* rgb */ color: rgb(151, 121, 31);
/* oklch */ color: oklch(58.9% 0.109 89.2);
Tailwind
colors: {
  custom: {
    50: '#ba9f62',
    500: '#97791f',
    950: '#000000',
  },
}
SCSS
$custom: #97791f;
$custom-light: #ba9f62;
$custom-dark: #000000;
JSON
{
  "hex": "#97791f",
  "rgb": {
    "r": 151,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 45,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58921,
    "c": 0.10936,
    "h": 89.2
  },
  "luminance": 0.20353
}

Semantic roles & 50–950 ramp

primary
#97791F
secondary
#526EBF
accent
#69E93F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #97791F

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

Preview Lab → · Contrast checker → · Palette generator →

#97791F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva