#897D16#897D16

#897D16 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.3% C 0.115 H 102.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#897D16
RGBrgb(137, 125, 22)
HSLhsl(54, 72%, 31%)
HSVhsv(54, 84%, 54%)
CMYKcmyk(0%, 8.8%, 83.9%, 46.3%)
CIE-LABlab(51.89, -6.58, 52.32)
CIE-LCHlch(51.89, 52.73, 97.16°)
OKLaboklab(58.3% -0.0243 0.1128)
OKLCHoklch(58.3% 0.115 102.2)
XYZxyz(17.7958, 20.0443, 3.6905)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897D16 #162289
analogous
#894316 #897D16 #5B8916
triadic
#897D16 #16897D #7D1689
tetradic
#897D16 #168943 #162289 #89165B
square
#897D16 #168943 #162289 #89165B
split-complementary
#897D16 #165B89 #431689
monochromatic
#201D05 #544D0E #897D16 #BEAD1E #DFCE3A

Accessibility & contrast

On white

4.19
#897D16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#897D16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897D16
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897D16#FFFFFF#000000##000000
##897D161.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8D7E1F
Tritanopia (blue-blind)
#94736A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #897d16;
/* rgb */ color: rgb(137, 125, 22);
/* oklch */ color: oklch(58.3% 0.115 102.2);
Tailwind
colors: {
  custom: {
    50: '#afa25f',
    500: '#897d16',
    950: '#000000',
  },
}
SCSS
$custom: #897d16;
$custom-light: #afa25f;
$custom-dark: #000000;
JSON
{
  "hex": "#897d16",
  "rgb": {
    "r": 137,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 53.739,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.583,
    "c": 0.11535,
    "h": 102.2
  },
  "luminance": 0.20044
}

Semantic roles & 50–950 ramp

primary
#897D16
secondary
#3E4BBD
accent
#4CEF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110F05
muted
#807E79

Preview Lab

Preview with #897D16

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

Preview Lab → · Contrast checker → · Palette generator →

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