#897D18#897D18

#897D18 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.3% C 0.114 H 102.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#897D18
RGBrgb(137, 125, 24)
HSLhsl(54, 70%, 32%)
HSVhsv(54, 82%, 54%)
CMYKcmyk(0%, 8.8%, 82.5%, 46.3%)
CIE-LABlab(51.90, -6.51, 51.73)
CIE-LCHlch(51.90, 52.13, 97.17°)
OKLaboklab(58.31% -0.024 0.1119)
OKLCHoklch(58.31% 0.114 102.1)
XYZxyz(17.8159, 20.0524, 3.7960)
Luminance0.2005 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897D18 #182489
analogous
#894518 #897D18 #5D8918
triadic
#897D18 #18897D #7D1889
tetradic
#897D18 #188945 #182489 #89185D
square
#897D18 #188945 #182489 #89185D
split-complementary
#897D18 #185D89 #451889
monochromatic
#211E06 #554D0F #897D18 #BDAD21 #DDCC3E

Accessibility & contrast

On white

4.19
#897D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#897D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897D18
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897D18#FFFFFF#000000##000000
##897D181.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#8D7E20
Tritanopia (blue-blind)
#94736B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #897d18;
/* rgb */ color: rgb(137, 125, 24);
/* oklch */ color: oklch(58.3% 0.114 102.1);
Tailwind
colors: {
  custom: {
    50: '#afa25f',
    500: '#897d18',
    950: '#000000',
  },
}
SCSS
$custom: #897d18;
$custom-light: #afa25f;
$custom-dark: #000000;
JSON
{
  "hex": "#897d18",
  "rgb": {
    "r": 137,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 53.628,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5831,
    "c": 0.11443,
    "h": 102.1
  },
  "luminance": 0.20052
}

Semantic roles & 50–950 ramp

primary
#897D18
secondary
#404DBD
accent
#4EED3B
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110F05
muted
#807E79

Preview Lab

Preview with #897D18

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

Preview Lab → · Contrast checker → · Palette generator →

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