#898B1F#898B1F

#898B1F is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.6% C 0.124 H 110.6°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#898B1F
RGBrgb(137, 139, 31)
HSLhsl(61, 64%, 33%)
HSVhsv(61, 78%, 55%)
CMYKcmyk(1.4%, 0%, 77.7%, 45.5%)
CIE-LABlab(55.97, -13.83, 53.13)
CIE-LCHlch(55.97, 54.90, 104.59°)
OKLaboklab(61.57% -0.0438 0.1163)
OKLCHoklch(61.57% 0.124 110.6)
XYZxyz(19.7972, 23.8831, 4.8631)
Luminance0.2388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#898B1F #211F8B
analogous
#8B571F #898B1F #538B1F
triadic
#898B1F #1F898B #8B1F89
tetradic
#898B1F #1F8B57 #211F8B #8B1F53
square
#898B1F #1F8B57 #211F8B #8B1F53
split-complementary
#898B1F #1F538B #571F8B
monochromatic
#262709 #585914 #898B1F #BABD2A #D5D74D

Accessibility & contrast

On white

3.64
#898B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#898B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #898B1F
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##898B1F#FFFFFF#000000##000000
##898B1F1.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968503
Deuteranopia (green-blind)
#978828
Tritanopia (blue-blind)
#938277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #898b1f;
/* rgb */ color: rgb(137, 139, 31);
/* oklch */ color: oklch(61.6% 0.124 110.6);
Tailwind
colors: {
  custom: {
    50: '#afac64',
    500: '#898b1f',
    950: '#000000',
  },
}
SCSS
$custom: #898b1f;
$custom-light: #afac64;
$custom-dark: #000000;
JSON
{
  "hex": "#898b1f",
  "rgb": {
    "r": 137,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 61.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61569,
    "c": 0.12425,
    "h": 110.6
  },
  "luminance": 0.23883
}

Semantic roles & 50–950 ramp

primary
#898B1F
secondary
#4E4CBA
accent
#41E744
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #898B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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