#898A1F#898A1F

#898A1F is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.3% C 0.123 H 110.1°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#898A1F
RGBrgb(137, 138, 31)
HSLhsl(61, 63%, 33%)
HSVhsv(61, 78%, 54%)
CMYKcmyk(0.7%, 0%, 77.5%, 45.9%)
CIE-LABlab(55.68, -13.30, 52.86)
CIE-LCHlch(55.68, 54.51, 104.12°)
OKLaboklab(61.34% -0.0423 0.1157)
OKLCHoklch(61.34% 0.123 110.1)
XYZxyz(19.6530, 23.5948, 4.8151)
Luminance0.2359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#898A1F #201F8A
analogous
#8A551F #898A1F #538A1F
triadic
#898A1F #1F898A #8A1F89
tetradic
#898A1F #1F8A55 #201F8A #8A1F53
square
#898A1F #1F8A55 #201F8A #8A1F53
split-complementary
#898A1F #1F538A #551F8A
monochromatic
#262609 #575814 #898A1F #BBBC2A #D6D74C

Accessibility & contrast

On white

3.67
#898A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#898A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #898A1F
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##898A1F#FFFFFF#000000##000000
##898A1F1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968404
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#938176
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #898a1f;
/* rgb */ color: rgb(137, 138, 31);
/* oklch */ color: oklch(61.3% 0.123 110.1);
Tailwind
colors: {
  custom: {
    50: '#afab64',
    500: '#898a1f',
    950: '#000000',
  },
}
SCSS
$custom: #898a1f;
$custom-light: #afab64;
$custom-dark: #000000;
JSON
{
  "hex": "#898a1f",
  "rgb": {
    "r": 137,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 60.561,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61337,
    "c": 0.12321,
    "h": 110.1
  },
  "luminance": 0.23594
}

Semantic roles & 50–950 ramp

primary
#898A1F
secondary
#4C4BBA
accent
#41E643
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #898A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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