#897A18#897A18

#897A18 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.6% C 0.112 H 99.9°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#897A18
RGBrgb(137, 122, 24)
HSLhsl(52, 70%, 32%)
HSVhsv(52, 82%, 54%)
CMYKcmyk(0%, 10.9%, 82.5%, 46.3%)
CIE-LABlab(51.04, -4.84, 50.98)
CIE-LCHlch(51.04, 51.20, 95.42°)
OKLaboklab(57.63% -0.0193 0.1103)
OKLCHoklch(57.63% 0.112 99.9)
XYZxyz(17.4418, 19.3043, 3.6714)
Luminance0.1930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897A18 #182789
analogous
#894218 #897A18 #608918
triadic
#897A18 #18897A #7A1889
tetradic
#897A18 #188942 #182789 #891860
square
#897A18 #188942 #182789 #891860
split-complementary
#897A18 #186089 #421889
monochromatic
#211D06 #554C0F #897A18 #BDA821 #DDC83E

Accessibility & contrast

On white

4.32
#897A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#897A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897A18
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897A18#FFFFFF#000000##000000
##897A181.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#8B7C20
Tritanopia (blue-blind)
#947068
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #897a18;
/* rgb */ color: rgb(137, 122, 24);
/* oklch */ color: oklch(57.6% 0.112 99.9);
Tailwind
colors: {
  custom: {
    50: '#afa05f',
    500: '#897a18',
    950: '#000000',
  },
}
SCSS
$custom: #897a18;
$custom-light: #afa05f;
$custom-dark: #000000;
JSON
{
  "hex": "#897a18",
  "rgb": {
    "r": 137,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 52.035,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57631,
    "c": 0.11193,
    "h": 99.9
  },
  "luminance": 0.19303
}

Semantic roles & 50–950 ramp

primary
#897A18
secondary
#4051BD
accent
#52ED3B
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #897A18

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

Preview Lab → · Contrast checker → · Palette generator →

#897A18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva