#97781A#97781A

#97781A is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.7% C 0.111 H 88.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#97781A
RGBrgb(151, 120, 26)
HSLhsl(45, 71%, 35%)
HSVhsv(45, 83%, 59%)
CMYKcmyk(0%, 20.5%, 82.8%, 40.8%)
CIE-LABlab(51.94, 2.90, 51.67)
CIE-LCHlch(51.94, 51.75, 86.78°)
OKLaboklab(58.68% 0.0021 0.1114)
OKLCHoklch(58.68% 0.111 88.9)
XYZxyz(19.6667, 20.0882, 3.8186)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97781A #1A3997
analogous
#973A1A #97781A #78971A
triadic
#97781A #1A9778 #781A97
tetradic
#97781A #1A973A #1A3997 #971A78
square
#97781A #1A973A #1A3997 #971A78
split-complementary
#97781A #1A7897 #3A1A97
monochromatic
#2F2508 #634F11 #97781A #CBA123 #E0BB4B

Accessibility & contrast

On white

4.19
#97781A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#97781A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97781A
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97781A#FFFFFF#000000##000000
##97781A1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#877702
Deuteranopia (green-blind)
#8F7F20
Tritanopia (blue-blind)
#A46D67
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #97781a;
/* rgb */ color: rgb(151, 120, 26);
/* oklch */ color: oklch(58.7% 0.111 88.9);
Tailwind
colors: {
  custom: {
    50: '#ba9e60',
    500: '#97781a',
    950: '#000000',
  },
}
SCSS
$custom: #97781a;
$custom-light: #ba9e60;
$custom-dark: #000000;
JSON
{
  "hex": "#97781a",
  "rgb": {
    "r": 151,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 45.12,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58677,
    "c": 0.11144,
    "h": 88.9
  },
  "luminance": 0.20087
}

Semantic roles & 50–950 ramp

primary
#97781A
secondary
#4B68C2
accent
#67ED3A
background
#FCF9F5
surface
#F8F2EA
border
#D1CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #97781A

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

Preview Lab → · Contrast checker → · Palette generator →

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