#897F21#897F21

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

Color values

HEX#897F21
RGBrgb(137, 127, 33)
HSLhsl(54, 61%, 33%)
HSVhsv(54, 76%, 54%)
CMYKcmyk(0%, 7.3%, 75.9%, 46.3%)
CIE-LABlab(52.52, -7.24, 49.20)
CIE-LCHlch(52.52, 49.73, 98.37°)
OKLaboklab(58.82% -0.0252 0.1083)
OKLCHoklch(58.82% 0.111 103.1)
XYZxyz(18.1812, 20.6077, 4.4585)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F21 #212B89
analogous
#894B21 #897F21 #5F8921
triadic
#897F21 #21897F #7F2189
tetradic
#897F21 #21894B #212B89 #89215F
square
#897F21 #21894B #212B89 #89215F
split-complementary
#897F21 #215F89 #4B2189
monochromatic
#262409 #585115 #897F21 #BAAD2D #D5C850

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##897F21#FFFFFF#000000##000000
##897F211.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)
#8B7B0F
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897f21;
/* rgb */ color: rgb(137, 127, 33);
/* oklch */ color: oklch(58.8% 0.111 103.1);
Tailwind
colors: {
  custom: {
    50: '#afa364',
    500: '#897f21',
    950: '#000000',
  },
}
SCSS
$custom: #897f21;
$custom-light: #afa364;
$custom-dark: #000000;
JSON
{
  "hex": "#897f21",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 54.231,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58819,
    "c": 0.1112,
    "h": 103.1
  },
  "luminance": 0.20607
}

Semantic roles & 50–950 ramp

primary
#897F21
secondary
#4E58B8
accent
#53E444
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #897F21

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

Preview Lab → · Contrast checker → · Palette generator →

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