#97811B#97811B

#97811B is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.6% C 0.116 H 95.9°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#97811B
RGBrgb(151, 129, 27)
HSLhsl(49, 70%, 35%)
HSVhsv(49, 82%, 59%)
CMYKcmyk(0%, 14.6%, 82.1%, 40.8%)
CIE-LABlab(54.41, -2.11, 53.51)
CIE-LCHlch(54.41, 53.56, 92.26°)
OKLaboklab(60.63% -0.012 0.1157)
OKLCHoklch(60.63% 0.116 95.9)
XYZxyz(20.8117, 22.3601, 4.2564)
Luminance0.2236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97811B #1B3197
analogous
#97431B #97811B #6F971B
triadic
#97811B #1B9781 #811B97
tetradic
#97811B #1B9743 #1B3197 #971B6F
square
#97811B #1B9743 #1B3197 #971B6F
split-complementary
#97811B #1B6F97 #431B97
monochromatic
#2F2808 #635512 #97811B #CBAD24 #DFC54D

Accessibility & contrast

On white

3.84
#97811B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#97811B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97811B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97811B#FFFFFF#000000##000000
##97811B1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#958522
Tritanopia (blue-blind)
#A4766E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #97811b;
/* rgb */ color: rgb(151, 129, 27);
/* oklch */ color: oklch(60.6% 0.116 95.9);
Tailwind
colors: {
  custom: {
    50: '#baa562',
    500: '#97811b',
    950: '#000000',
  },
}
SCSS
$custom: #97811b;
$custom-light: #baa562;
$custom-dark: #000000;
JSON
{
  "hex": "#97811b",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 49.355,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60629,
    "c": 0.11627,
    "h": 95.9
  },
  "luminance": 0.22359
}

Semantic roles & 50–950 ramp

primary
#97811B
secondary
#4C61C1
accent
#5BEC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #97811B

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

Preview Lab → · Contrast checker → · Palette generator →

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