#897D26#897D26

#897D26 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.4% C 0.106 H 101.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#897D26
RGBrgb(137, 125, 38)
HSLhsl(53, 57%, 34%)
HSVhsv(53, 72%, 54%)
CMYKcmyk(0%, 8.8%, 72.3%, 46.3%)
CIE-LABlab(51.98, -5.88, 46.70)
CIE-LCHlch(51.98, 47.07, 97.18°)
OKLaboklab(58.4% -0.0208 0.104)
OKLCHoklch(58.4% 0.106 101.3)
XYZxyz(18.0008, 20.1263, 4.7699)
Luminance0.2013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897D26 #263289
analogous
#894C26 #897D26 #648926
triadic
#897D26 #26897D #7D2689
tetradic
#897D26 #26894C #263289 #892664
square
#897D26 #26894C #263289 #892664
split-complementary
#897D26 #266489 #4C2689
monochromatic
#29260B #595119 #897D26 #B9A933 #D1C259

Accessibility & contrast

On white

4.18
#897D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#897D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897D26
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897D26#FFFFFF#000000##000000
##897D261.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#897919
Deuteranopia (green-blind)
#8C7E2B
Tritanopia (blue-blind)
#94746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #897d26;
/* rgb */ color: rgb(137, 125, 38);
/* oklch */ color: oklch(58.4% 0.106 101.3);
Tailwind
colors: {
  custom: {
    50: '#afa266',
    500: '#897d26',
    950: '#000000',
  },
}
SCSS
$custom: #897d26;
$custom-light: #afa266;
$custom-dark: #000000;
JSON
{
  "hex": "#897d26",
  "rgb": {
    "r": 137,
    "g": 125,
    "b": 38
  },
  "hsl": {
    "h": 52.727,
    "s": 56.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58403,
    "c": 0.10606,
    "h": 101.3
  },
  "luminance": 0.20126
}

Semantic roles & 50–950 ramp

primary
#897D26
secondary
#5561B6
accent
#5AE048
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897D26

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

Preview Lab → · Contrast checker → · Palette generator →

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