#897D25#897D25

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

Color values

HEX#897D25
RGBrgb(137, 125, 37)
HSLhsl(53, 57%, 34%)
HSVhsv(53, 73%, 54%)
CMYKcmyk(0%, 8.8%, 73%, 46.3%)
CIE-LABlab(51.97, -5.93, 47.11)
CIE-LCHlch(51.97, 47.48, 97.18°)
OKLaboklab(58.4% -0.021 0.1047)
OKLCHoklch(58.4% 0.107 101.4)
XYZxyz(17.9849, 20.1200, 4.6861)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897D25 #253189
analogous
#894B25 #897D25 #638925
triadic
#897D25 #25897D #7D2589
tetradic
#897D25 #25894B #253189 #892563
square
#897D25 #25894B #253189 #892563
split-complementary
#897D25 #256389 #4B2589
monochromatic
#29250B #595118 #897D25 #B9A932 #D2C357

Accessibility & contrast

On white

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

On black

5.02
#897D25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897D25
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897D25#FFFFFF#000000##000000
##897D251.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #897d25;
/* rgb */ color: rgb(137, 125, 37);
/* oklch */ color: oklch(58.4% 0.107 101.4);
Tailwind
colors: {
  custom: {
    50: '#afa266',
    500: '#897d25',
    950: '#000000',
  },
}
SCSS
$custom: #897d25;
$custom-light: #afa266;
$custom-dark: #000000;
JSON
{
  "hex": "#897d25",
  "rgb": {
    "r": 137,
    "g": 125,
    "b": 37
  },
  "hsl": {
    "h": 52.8,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58395,
    "c": 0.10676,
    "h": 101.4
  },
  "luminance": 0.20119
}

Semantic roles & 50–950 ramp

primary
#897D25
secondary
#5460B6
accent
#5AE147
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897D25

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

Preview Lab → · Contrast checker → · Palette generator →

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