#898C1F#898C1F

#898C1F is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.8% C 0.125 H 111.2°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#898C1F
RGBrgb(137, 140, 31)
HSLhsl(62, 64%, 34%)
HSVhsv(62, 78%, 55%)
CMYKcmyk(2.1%, 0%, 77.9%, 45.1%)
CIE-LABlab(56.26, -14.36, 53.39)
CIE-LCHlch(56.26, 55.29, 105.06°)
OKLaboklab(61.8% -0.0453 0.1168)
OKLCHoklch(61.8% 0.125 111.2)
XYZxyz(19.9426, 24.1740, 4.9116)
Luminance0.2417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#898C1F #221F8C
analogous
#8C581F #898C1F #528C1F
triadic
#898C1F #1F898C #8C1F89
tetradic
#898C1F #1F8C58 #221F8C #8C1F52
square
#898C1F #1F8C58 #221F8C #8C1F52
split-complementary
#898C1F #1F528C #581F8C
monochromatic
#272809 #585A14 #898C1F #BABE2A #D4D84E

Accessibility & contrast

On white

3.60
#898C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#898C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #898C1F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##898C1F#FFFFFF#000000##000000
##898C1F1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#938378
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #898c1f;
/* rgb */ color: rgb(137, 140, 31);
/* oklch */ color: oklch(61.8% 0.125 111.2);
Tailwind
colors: {
  custom: {
    50: '#afad64',
    500: '#898c1f',
    950: '#000000',
  },
}
SCSS
$custom: #898c1f;
$custom-light: #afad64;
$custom-dark: #000000;
JSON
{
  "hex": "#898c1f",
  "rgb": {
    "r": 137,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 61.651,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61802,
    "c": 0.12531,
    "h": 111.2
  },
  "luminance": 0.24173
}

Semantic roles & 50–950 ramp

primary
#898C1F
secondary
#4F4CBB
accent
#41E746
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #898C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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