#897F22#897F22

#897F22 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.111 H 103.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#897F22
RGBrgb(137, 127, 34)
HSLhsl(54, 60%, 34%)
HSVhsv(54, 75%, 54%)
CMYKcmyk(0%, 7.3%, 75.2%, 46.3%)
CIE-LABlab(52.52, -7.19, 48.83)
CIE-LCHlch(52.52, 49.35, 98.38°)
OKLaboklab(58.83% -0.0249 0.1077)
OKLCHoklch(58.83% 0.111 103)
XYZxyz(18.1954, 20.6134, 4.5334)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F22 #222C89
analogous
#894B22 #897F22 #5F8922
triadic
#897F22 #22897F #7F2289
tetradic
#897F22 #22894B #222C89 #89225F
square
#897F22 #22894B #222C89 #89225F
split-complementary
#897F22 #225F89 #4B2289
monochromatic
#27240A #585216 #897F22 #BAAC2E #D4C751

Accessibility & contrast

On white

4.10
#897F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#897F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897F22
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897F22#FFFFFF#000000##000000
##897F221.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B11
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897f22;
/* rgb */ color: rgb(137, 127, 34);
/* oklch */ color: oklch(58.8% 0.111 103.0);
Tailwind
colors: {
  custom: {
    50: '#afa364',
    500: '#897f22',
    950: '#000000',
  },
}
SCSS
$custom: #897f22;
$custom-light: #afa364;
$custom-dark: #000000;
JSON
{
  "hex": "#897f22",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 54.175,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58826,
    "c": 0.11057,
    "h": 103
  },
  "luminance": 0.20613
}

Semantic roles & 50–950 ramp

primary
#897F22
secondary
#4F59B8
accent
#54E344
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #897F22

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

Preview Lab → · Contrast checker → · Palette generator →

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