#897E22#897E22

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

Color values

HEX#897E22
RGBrgb(137, 126, 34)
HSLhsl(54, 60%, 34%)
HSVhsv(54, 75%, 54%)
CMYKcmyk(0%, 8%, 75.2%, 46.3%)
CIE-LABlab(52.24, -6.64, 48.55)
CIE-LCHlch(52.24, 49.00, 97.79°)
OKLaboklab(58.6% -0.0234 0.1072)
OKLCHoklch(58.6% 0.11 102.3)
XYZxyz(18.0669, 20.3564, 4.4906)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897E22 #222D89
analogous
#894A22 #897E22 #608922
triadic
#897E22 #22897E #7E2289
tetradic
#897E22 #22894A #222D89 #892260
square
#897E22 #22894A #222D89 #892260
split-complementary
#897E22 #226089 #4A2289
monochromatic
#27240A #585116 #897E22 #BAAB2E #D4C651

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##897E22#FFFFFF#000000##000000
##897E221.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)
#8A7A11
Deuteranopia (green-blind)
#8D7F28
Tritanopia (blue-blind)
#94756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897e22;
/* rgb */ color: rgb(137, 126, 34);
/* oklch */ color: oklch(58.6% 0.110 102.3);
Tailwind
colors: {
  custom: {
    50: '#afa364',
    500: '#897e22',
    950: '#000000',
  },
}
SCSS
$custom: #897e22;
$custom-light: #afa364;
$custom-dark: #000000;
JSON
{
  "hex": "#897e22",
  "rgb": {
    "r": 137,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 53.592,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58599,
    "c": 0.10967,
    "h": 102.3
  },
  "luminance": 0.20356
}

Semantic roles & 50–950 ramp

primary
#897E22
secondary
#4F5AB8
accent
#55E344
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897E22

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

Preview Lab → · Contrast checker → · Palette generator →

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