#898017#898017

#898017 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.118 H 104.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#898017
RGBrgb(137, 128, 23)
HSLhsl(55, 71%, 31%)
HSVhsv(55, 83%, 54%)
CMYKcmyk(0%, 6.6%, 83.2%, 46.3%)
CIE-LABlab(52.75, -8.20, 52.77)
CIE-LCHlch(52.75, 53.41, 98.83°)
OKLaboklab(58.99% -0.0288 0.114)
OKLCHoklch(58.99% 0.118 104.2)
XYZxyz(18.1912, 20.8193, 3.8708)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#898017 #172089
analogous
#894717 #898017 #598917
triadic
#898017 #178980 #801789
tetradic
#898017 #178947 #172089 #891759
square
#898017 #178947 #172089 #891759
split-complementary
#898017 #175989 #471789
monochromatic
#201E05 #554F0E #898017 #BDB120 #DED13C

Accessibility & contrast

On white

4.07
#898017 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#898017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #898017
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##898017#FFFFFF#000000##000000
##8980171.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8F8020
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #898017;
/* rgb */ color: rgb(137, 128, 23);
/* oklch */ color: oklch(59.0% 0.118 104.2);
Tailwind
colors: {
  custom: {
    50: '#afa45f',
    500: '#898017',
    950: '#000000',
  },
}
SCSS
$custom: #898017;
$custom-light: #afa45f;
$custom-dark: #000000;
JSON
{
  "hex": "#898017",
  "rgb": {
    "r": 137,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 55.263,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.58988,
    "c": 0.11753,
    "h": 104.2
  },
  "luminance": 0.20819
}

Semantic roles & 50–950 ramp

primary
#898017
secondary
#3F49BD
accent
#48EE3A
background
#FBFAF5
surface
#F6F4EA
border
#D0CEC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #898017

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

Preview Lab → · Contrast checker → · Palette generator →

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