#897E21#897E21

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

Color values

HEX#897E21
RGBrgb(137, 126, 33)
HSLhsl(54, 61%, 33%)
HSVhsv(54, 76%, 54%)
CMYKcmyk(0%, 8%, 75.9%, 46.3%)
CIE-LABlab(52.23, -6.69, 48.93)
CIE-LCHlch(52.23, 49.38, 97.79°)
OKLaboklab(58.59% -0.0236 0.1077)
OKLCHoklch(58.59% 0.11 102.4)
XYZxyz(18.0527, 20.3507, 4.4157)
Luminance0.2035 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897E21 #212C89
analogous
#894A21 #897E21 #608921
triadic
#897E21 #21897E #7E2189
tetradic
#897E21 #21894A #212C89 #892160
square
#897E21 #21894A #212C89 #892160
split-complementary
#897E21 #216089 #4A2189
monochromatic
#262309 #585115 #897E21 #BAAB2D #D5C750

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##897E21#FFFFFF#000000##000000
##897E211.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)
#8A7A10
Deuteranopia (green-blind)
#8D7F27
Tritanopia (blue-blind)
#94756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897e21;
/* rgb */ color: rgb(137, 126, 33);
/* oklch */ color: oklch(58.6% 0.110 102.4);
Tailwind
colors: {
  custom: {
    50: '#afa364',
    500: '#897e21',
    950: '#000000',
  },
}
SCSS
$custom: #897e21;
$custom-light: #afa364;
$custom-dark: #000000;
JSON
{
  "hex": "#897e21",
  "rgb": {
    "r": 137,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 53.654,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58592,
    "c": 0.11029,
    "h": 102.4
  },
  "luminance": 0.2035
}

Semantic roles & 50–950 ramp

primary
#897E21
secondary
#4E59B8
accent
#55E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897E21

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

Preview Lab → · Contrast checker → · Palette generator →

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