#898E21#898E21

#898E21 is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.3% C 0.126 H 112.2°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#898E21
RGBrgb(137, 142, 33)
HSLhsl(63, 62%, 34%)
HSVhsv(63, 77%, 56%)
CMYKcmyk(3.5%, 0%, 76.8%, 44.3%)
CIE-LABlab(56.86, -15.33, 53.27)
CIE-LCHlch(56.86, 55.43, 106.05°)
OKLaboklab(62.28% -0.0478 0.117)
OKLCHoklch(62.28% 0.126 112.2)
XYZxyz(20.2647, 24.7747, 5.1530)
Luminance0.2477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#898E21 #26218E
analogous
#8E5D21 #898E21 #538E21
triadic
#898E21 #21898E #8E2189
tetradic
#898E21 #218E5D #26218E #8E2153
square
#898E21 #218E5D #26218E #8E2153
split-complementary
#898E21 #21538E #5D218E
monochromatic
#292B0A #595C15 #898E21 #B9C02D #D1D752

Accessibility & contrast

On white

3.53
#898E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#898E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #898E21
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##898E21#FFFFFF#000000##000000
##898E211.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998707
Deuteranopia (green-blind)
#9A8A2A
Tritanopia (blue-blind)
#938579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #898e21;
/* rgb */ color: rgb(137, 142, 33);
/* oklch */ color: oklch(62.3% 0.126 112.2);
Tailwind
colors: {
  custom: {
    50: '#afae66',
    500: '#898e21',
    950: '#000000',
  },
}
SCSS
$custom: #898e21;
$custom-light: #afae66;
$custom-dark: #000000;
JSON
{
  "hex": "#898e21",
  "rgb": {
    "r": 137,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 62.752,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.62281,
    "c": 0.12635,
    "h": 112.2
  },
  "luminance": 0.24774
}

Semantic roles & 50–950 ramp

primary
#898E21
secondary
#5550BA
accent
#42E54A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #898E21

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

Preview Lab → · Contrast checker → · Palette generator →

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