#897F1E#897F1E

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

Color values

HEX#897F1E
RGBrgb(137, 127, 30)
HSLhsl(54, 64%, 33%)
HSVhsv(54, 78%, 54%)
CMYKcmyk(0%, 7.3%, 78.1%, 46.3%)
CIE-LABlab(52.50, -7.38, 50.27)
CIE-LCHlch(52.50, 50.81, 98.35°)
OKLaboklab(58.8% -0.0258 0.11)
OKLCHoklch(58.8% 0.113 103.2)
XYZxyz(18.1411, 20.5916, 4.2471)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F1E #1E2889
analogous
#894A1E #897F1E #5D891E
triadic
#897F1E #1E897F #7F1E89
tetradic
#897F1E #1E894A #1E2889 #891E5D
square
#897F1E #1E894A #1E2889 #891E5D
split-complementary
#897F1E #1E5D89 #4A1E89
monochromatic
#252208 #575013 #897F1E #BBAE29 #D7CA4A

Accessibility & contrast

On white

4.10
#897F1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#897F1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897F1E
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897F1E#FFFFFF#000000##000000
##897F1E1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B08
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897f1e;
/* rgb */ color: rgb(137, 127, 30);
/* oklch */ color: oklch(58.8% 0.113 103.2);
Tailwind
colors: {
  custom: {
    50: '#afa362',
    500: '#897f1e',
    950: '#000000',
  },
}
SCSS
$custom: #897f1e;
$custom-light: #afa362;
$custom-dark: #000000;
JSON
{
  "hex": "#897f1e",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 54.393,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.588,
    "c": 0.11301,
    "h": 103.2
  },
  "luminance": 0.20591
}

Semantic roles & 50–950 ramp

primary
#897F1E
secondary
#4954BA
accent
#50E741
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #897F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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