#898217#898217

#898217 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.4% C 0.119 H 105.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#898217
RGBrgb(137, 130, 23)
HSLhsl(56, 71%, 31%)
HSVhsv(56, 83%, 54%)
CMYKcmyk(0%, 5.1%, 83.2%, 46.3%)
CIE-LABlab(53.33, -9.29, 53.27)
CIE-LCHlch(53.33, 54.08, 99.89°)
OKLaboklab(59.45% -0.0318 0.115)
OKLCHoklch(59.45% 0.119 105.5)
XYZxyz(18.4546, 21.3462, 3.9586)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#898217 #171E89
analogous
#894917 #898217 #578917
triadic
#898217 #178982 #821789
tetradic
#898217 #178949 #171E89 #891757
square
#898217 #178949 #171E89 #891757
split-complementary
#898217 #175789 #491789
monochromatic
#201F05 #55500E #898217 #BDB420 #DED43C

Accessibility & contrast

On white

3.99
#898217 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#898217 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #898217
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##898217#FFFFFF#000000##000000
##8982171.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#918121
Tritanopia (blue-blind)
#94786F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #898217;
/* rgb */ color: rgb(137, 130, 23);
/* oklch */ color: oklch(59.4% 0.119 105.5);
Tailwind
colors: {
  custom: {
    50: '#afa660',
    500: '#898217',
    950: '#000000',
  },
}
SCSS
$custom: #898217;
$custom-light: #afa660;
$custom-dark: #000000;
JSON
{
  "hex": "#898217",
  "rgb": {
    "r": 137,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 56.316,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59446,
    "c": 0.11934,
    "h": 105.5
  },
  "luminance": 0.21345
}

Semantic roles & 50–950 ramp

primary
#898217
secondary
#3F47BD
accent
#45EE3A
background
#FBFAF5
surface
#F6F4EA
border
#D0CEC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #898217

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

Preview Lab → · Contrast checker → · Palette generator →

#898217 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva