#897F15#897F15

#897F15 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.118 H 103.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#897F15
RGBrgb(137, 127, 21)
HSLhsl(55, 73%, 31%)
HSVhsv(55, 85%, 54%)
CMYKcmyk(0%, 7.3%, 84.7%, 46.3%)
CIE-LABlab(52.46, -7.71, 53.10)
CIE-LCHlch(52.46, 53.65, 98.26°)
OKLaboklab(58.75% -0.0276 0.1142)
OKLCHoklch(58.75% 0.118 103.6)
XYZxyz(18.0421, 20.5520, 3.7259)
Luminance0.2055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F15 #151F89
analogous
#894515 #897F15 #598915
triadic
#897F15 #15897F #7F1589
tetradic
#897F15 #158945 #151F89 #891559
square
#897F15 #158945 #151F89 #891559
split-complementary
#897F15 #155989 #451589
monochromatic
#1F1D05 #544E0D #897F15 #BEB01D #E0D238

Accessibility & contrast

On white

4.11
#897F15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#897F15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897F15
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897F15#FFFFFF#000000##000000
##897F151.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8F7F1F
Tritanopia (blue-blind)
#94756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897f15;
/* rgb */ color: rgb(137, 127, 21);
/* oklch */ color: oklch(58.8% 0.118 103.6);
Tailwind
colors: {
  custom: {
    50: '#afa35e',
    500: '#897f15',
    950: '#000000',
  },
}
SCSS
$custom: #897f15;
$custom-light: #afa35e;
$custom-dark: #000000;
JSON
{
  "hex": "#897f15",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 54.828,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.58751,
    "c": 0.11752,
    "h": 103.6
  },
  "luminance": 0.20551
}

Semantic roles & 50–950 ramp

primary
#897F15
secondary
#3D48BD
accent
#48F038
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #897F15

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

Preview Lab → · Contrast checker → · Palette generator →

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