#897818#897818

#897818 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 57.2% C 0.110 H 98.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#897818
RGBrgb(137, 120, 24)
HSLhsl(51, 70%, 32%)
HSVhsv(51, 82%, 54%)
CMYKcmyk(0%, 12.4%, 82.5%, 46.3%)
CIE-LABlab(50.47, -3.72, 50.48)
CIE-LCHlch(50.47, 50.61, 94.21°)
OKLaboklab(57.18% -0.0161 0.1092)
OKLCHoklch(57.18% 0.11 98.4)
XYZxyz(17.1988, 18.8182, 3.5903)
Luminance0.1882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897818 #182989
analogous
#893F18 #897818 #628918
triadic
#897818 #188978 #781889
tetradic
#897818 #18893F #182989 #891862
square
#897818 #18893F #182989 #891862
split-complementary
#897818 #186289 #3F1889
monochromatic
#211D06 #554A0F #897818 #BDA621 #DDC53E

Accessibility & contrast

On white

4.41
#897818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#897818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897818
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897818#FFFFFF#000000##000000
##8978181.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#897B1F
Tritanopia (blue-blind)
#946E66
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #897818;
/* rgb */ color: rgb(137, 120, 24);
/* oklch */ color: oklch(57.2% 0.110 98.4);
Tailwind
colors: {
  custom: {
    50: '#af9e5f',
    500: '#897818',
    950: '#000000',
  },
}
SCSS
$custom: #897818;
$custom-light: #af9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#897818",
  "rgb": {
    "r": 137,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 50.973,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57181,
    "c": 0.11037,
    "h": 98.4
  },
  "luminance": 0.18817
}

Semantic roles & 50–950 ramp

primary
#897818
secondary
#4053BD
accent
#56ED3B
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #897818

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

Preview Lab → · Contrast checker → · Palette generator →

#897818 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva