#897B17#897B17

#897B17 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.9% C 0.113 H 100.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#897B17
RGBrgb(137, 123, 23)
HSLhsl(53, 71%, 31%)
HSVhsv(53, 83%, 54%)
CMYKcmyk(0%, 10.2%, 83.2%, 46.3%)
CIE-LABlab(51.32, -5.43, 51.53)
CIE-LCHlch(51.32, 51.82, 96.02°)
OKLaboklab(57.85% -0.021 0.1113)
OKLCHoklch(57.85% 0.113 100.7)
XYZxyz(17.5550, 19.5470, 3.6587)
Luminance0.1955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897B17 #172589
analogous
#894217 #897B17 #5E8917
triadic
#897B17 #17897B #7B1789
tetradic
#897B17 #178942 #172589 #89175E
square
#897B17 #178942 #172589 #89175E
split-complementary
#897B17 #175E89 #421789
monochromatic
#201D05 #554C0E #897B17 #BDAA20 #DECA3C

Accessibility & contrast

On white

4.28
#897B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#897B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897B17
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897B17#FFFFFF#000000##000000
##897B171.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#8C7D1F
Tritanopia (blue-blind)
#947169
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #897b17;
/* rgb */ color: rgb(137, 123, 23);
/* oklch */ color: oklch(57.9% 0.113 100.7);
Tailwind
colors: {
  custom: {
    50: '#afa05f',
    500: '#897b17',
    950: '#000000',
  },
}
SCSS
$custom: #897b17;
$custom-light: #afa05f;
$custom-dark: #000000;
JSON
{
  "hex": "#897b17",
  "rgb": {
    "r": 137,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 52.632,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57852,
    "c": 0.11323,
    "h": 100.7
  },
  "luminance": 0.19546
}

Semantic roles & 50–950 ramp

primary
#897B17
secondary
#3F4FBD
accent
#50EE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #897B17

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

Preview Lab → · Contrast checker → · Palette generator →

#897B17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva