#897A25#897A25

#897A25 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.7% C 0.104 H 99.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#897A25
RGBrgb(137, 122, 37)
HSLhsl(51, 57%, 34%)
HSVhsv(51, 73%, 54%)
CMYKcmyk(0%, 10.9%, 73%, 46.3%)
CIE-LABlab(51.12, -4.26, 46.26)
CIE-LCHlch(51.12, 46.46, 95.26°)
OKLaboklab(57.72% -0.0163 0.1029)
OKLCHoklch(57.72% 0.104 99)
XYZxyz(17.6108, 19.3719, 4.5614)
Luminance0.1937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897A25 #253489
analogous
#894825 #897A25 #668925
triadic
#897A25 #25897A #7A2589
tetradic
#897A25 #258948 #253489 #892566
square
#897A25 #258948 #253489 #892566
split-complementary
#897A25 #256689 #482589
monochromatic
#29240B #594F18 #897A25 #B9A532 #D2BF57

Accessibility & contrast

On white

4.31
#897A25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#897A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897A25
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897A25#FFFFFF#000000##000000
##897A251.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#867718
Deuteranopia (green-blind)
#8A7C2A
Tritanopia (blue-blind)
#947169
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #897a25;
/* rgb */ color: rgb(137, 122, 37);
/* oklch */ color: oklch(57.7% 0.104 99.0);
Tailwind
colors: {
  custom: {
    50: '#afa065',
    500: '#897a25',
    950: '#000000',
  },
}
SCSS
$custom: #897a25;
$custom-light: #afa065;
$custom-dark: #000000;
JSON
{
  "hex": "#897a25",
  "rgb": {
    "r": 137,
    "g": 122,
    "b": 37
  },
  "hsl": {
    "h": 51,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57718,
    "c": 0.10417,
    "h": 99
  },
  "luminance": 0.19371
}

Semantic roles & 50–950 ramp

primary
#897A25
secondary
#5463B6
accent
#5EE147
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #897A25

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

Preview Lab → · Contrast checker → · Palette generator →

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