#897E17#897E17

#897E17 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.5% C 0.116 H 102.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#897E17
RGBrgb(137, 126, 23)
HSLhsl(54, 71%, 31%)
HSVhsv(54, 83%, 54%)
CMYKcmyk(0%, 8%, 83.2%, 46.3%)
CIE-LABlab(52.18, -7.09, 52.28)
CIE-LCHlch(52.18, 52.76, 97.73°)
OKLaboklab(58.53% -0.0257 0.1129)
OKLCHoklch(58.53% 0.116 102.8)
XYZxyz(17.9329, 20.3027, 3.7847)
Luminance0.2030 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897E17 #172289
analogous
#894517 #897E17 #5B8917
triadic
#897E17 #17897E #7E1789
tetradic
#897E17 #178945 #172289 #89175B
square
#897E17 #178945 #172289 #89175B
split-complementary
#897E17 #175B89 #451789
monochromatic
#201E05 #554E0E #897E17 #BDAE20 #DECF3C

Accessibility & contrast

On white

4.15
#897E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#897E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897E17
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897E17#FFFFFF#000000##000000
##897E171.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#8E7F20
Tritanopia (blue-blind)
#94746B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #897e17;
/* rgb */ color: rgb(137, 126, 23);
/* oklch */ color: oklch(58.5% 0.116 102.8);
Tailwind
colors: {
  custom: {
    50: '#afa35f',
    500: '#897e17',
    950: '#000000',
  },
}
SCSS
$custom: #897e17;
$custom-light: #afa35f;
$custom-dark: #000000;
JSON
{
  "hex": "#897e17",
  "rgb": {
    "r": 137,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 54.211,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.58532,
    "c": 0.11576,
    "h": 102.8
  },
  "luminance": 0.20302
}

Semantic roles & 50–950 ramp

primary
#897E17
secondary
#3F4BBD
accent
#4BEE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110F05
muted
#807E79

Preview Lab

Preview with #897E17

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

Preview Lab → · Contrast checker → · Palette generator →

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