#898D21#898D21

#898D21 is a light, vivid yellow. Relative luminance 0.245; OKLCH L 62.0% C 0.125 H 111.7°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#898D21
RGBrgb(137, 141, 33)
HSLhsl(62, 62%, 34%)
HSVhsv(62, 77%, 55%)
CMYKcmyk(2.8%, 0%, 76.6%, 44.7%)
CIE-LABlab(56.56, -14.80, 53.00)
CIE-LCHlch(56.56, 55.03, 105.61°)
OKLaboklab(62.05% -0.0463 0.1164)
OKLCHoklch(62.05% 0.125 111.7)
XYZxyz(20.1166, 24.4784, 5.1037)
Luminance0.2448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#898D21 #25218D
analogous
#8D5B21 #898D21 #538D21
triadic
#898D21 #21898D #8D2189
tetradic
#898D21 #218D5B #25218D #8D2153
square
#898D21 #218D5B #25218D #8D2153
split-complementary
#898D21 #21538D #5B218D
monochromatic
#292A0A #595B15 #898D21 #B9BF2D #D2D652

Accessibility & contrast

On white

3.56
#898D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#898D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #898D21
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##898D21#FFFFFF#000000##000000
##898D211.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#988607
Deuteranopia (green-blind)
#99892A
Tritanopia (blue-blind)
#938479
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #898d21;
/* rgb */ color: rgb(137, 141, 33);
/* oklch */ color: oklch(62.0% 0.125 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae66',
    500: '#898d21',
    950: '#000000',
  },
}
SCSS
$custom: #898d21;
$custom-light: #afae66;
$custom-dark: #000000;
JSON
{
  "hex": "#898d21",
  "rgb": {
    "r": 137,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 62.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62047,
    "c": 0.12526,
    "h": 111.7
  },
  "luminance": 0.24478
}

Semantic roles & 50–950 ramp

primary
#898D21
secondary
#5450BA
accent
#43E549
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #898D21

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

Preview Lab → · Contrast checker → · Palette generator →

#898D21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva