#97841B#97841B

#97841B is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.3% C 0.118 H 98.1°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#97841B
RGBrgb(151, 132, 27)
HSLhsl(51, 70%, 35%)
HSVhsv(51, 82%, 59%)
CMYKcmyk(0%, 12.6%, 82.1%, 40.8%)
CIE-LABlab(55.24, -3.78, 54.25)
CIE-LCHlch(55.24, 54.38, 93.98°)
OKLaboklab(61.29% -0.0167 0.1172)
OKLCHoklch(61.29% 0.118 98.1)
XYZxyz(21.2127, 23.1621, 4.3901)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97841B #1B2E97
analogous
#97461B #97841B #6C971B
triadic
#97841B #1B9784 #841B97
tetradic
#97841B #1B9746 #1B2E97 #971B6C
square
#97841B #1B9746 #1B2E97 #971B6C
split-complementary
#97841B #1B6C97 #461B97
monochromatic
#2F2908 #635712 #97841B #CBB124 #DFC94D

Accessibility & contrast

On white

3.73
#97841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#97841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97841B
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97841B#FFFFFF#000000##000000
##97841B1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#A47971
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #97841b;
/* rgb */ color: rgb(151, 132, 27);
/* oklch */ color: oklch(61.3% 0.118 98.1);
Tailwind
colors: {
  custom: {
    50: '#baa762',
    500: '#97841b',
    950: '#000000',
  },
}
SCSS
$custom: #97841b;
$custom-light: #baa762;
$custom-dark: #000000;
JSON
{
  "hex": "#97841b",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 50.806,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61287,
    "c": 0.11842,
    "h": 98.1
  },
  "luminance": 0.23161
}

Semantic roles & 50–950 ramp

primary
#97841B
secondary
#4C5EC1
accent
#56EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97841B

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

Preview Lab → · Contrast checker → · Palette generator →

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