#97791A#97791A

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

Color values

HEX#97791A
RGBrgb(151, 121, 26)
HSLhsl(46, 71%, 35%)
HSVhsv(46, 83%, 59%)
CMYKcmyk(0%, 19.9%, 82.8%, 40.8%)
CIE-LABlab(52.21, 2.34, 51.91)
CIE-LCHlch(52.21, 51.96, 87.42°)
OKLaboklab(58.89% 0.0005 0.1119)
OKLCHoklch(58.89% 0.112 89.7)
XYZxyz(19.7875, 20.3300, 3.8589)
Luminance0.2033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97791A #1A3897
analogous
#973B1A #97791A #77971A
triadic
#97791A #1A9779 #791A97
tetradic
#97791A #1A973B #1A3897 #971A77
square
#97791A #1A973B #1A3897 #971A77
split-complementary
#97791A #1A7797 #3B1A97
monochromatic
#2F2508 #634F11 #97791A #CBA323 #E0BC4B

Accessibility & contrast

On white

4.15
#97791A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##97791A#FFFFFF#000000##000000
##97791A1.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#887802
Deuteranopia (green-blind)
#8F8020
Tritanopia (blue-blind)
#A46E67
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #97791a;
/* rgb */ color: rgb(151, 121, 26);
/* oklch */ color: oklch(58.9% 0.112 89.7);
Tailwind
colors: {
  custom: {
    50: '#ba9f60',
    500: '#97791a',
    950: '#000000',
  },
}
SCSS
$custom: #97791a;
$custom-light: #ba9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#97791a",
  "rgb": {
    "r": 151,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 45.6,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58891,
    "c": 0.11194,
    "h": 89.7
  },
  "luminance": 0.20329
}

Semantic roles & 50–950 ramp

primary
#97791A
secondary
#4B67C2
accent
#65ED3A
background
#FCF9F5
surface
#F8F2EA
border
#D1CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #97791A

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

Preview Lab → · Contrast checker → · Palette generator →

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