#897E25#897E25

#897E25 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.6% C 0.108 H 102.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#897E25
RGBrgb(137, 126, 37)
HSLhsl(53, 57%, 34%)
HSVhsv(53, 73%, 54%)
CMYKcmyk(0%, 8%, 73%, 46.3%)
CIE-LABlab(52.26, -6.49, 47.39)
CIE-LCHlch(52.26, 47.83, 97.80°)
OKLaboklab(58.62% -0.0226 0.1053)
OKLCHoklch(58.62% 0.108 102.1)
XYZxyz(18.1121, 20.3744, 4.7285)
Luminance0.2037 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897E25 #253089
analogous
#894C25 #897E25 #628925
triadic
#897E25 #25897E #7E2589
tetradic
#897E25 #25894C #253089 #892562
square
#897E25 #25894C #253089 #892562
split-complementary
#897E25 #256289 #4C2589
monochromatic
#29250B #595218 #897E25 #B9AA32 #D2C457

Accessibility & contrast

On white

4.14
#897E25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#897E25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897E25
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897E25#FFFFFF#000000##000000
##897E251.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A17
Deuteranopia (green-blind)
#8D7F2B
Tritanopia (blue-blind)
#94756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897e25;
/* rgb */ color: rgb(137, 126, 37);
/* oklch */ color: oklch(58.6% 0.108 102.1);
Tailwind
colors: {
  custom: {
    50: '#afa366',
    500: '#897e25',
    950: '#000000',
  },
}
SCSS
$custom: #897e25;
$custom-light: #afa366;
$custom-dark: #000000;
JSON
{
  "hex": "#897e25",
  "rgb": {
    "r": 137,
    "g": 126,
    "b": 37
  },
  "hsl": {
    "h": 53.4,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58622,
    "c": 0.10767,
    "h": 102.1
  },
  "luminance": 0.20374
}

Semantic roles & 50–950 ramp

primary
#897E25
secondary
#545FB6
accent
#58E147
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897E25

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

Preview Lab → · Contrast checker → · Palette generator →

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