#897F1C#897F1C

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

Color values

HEX#897F1C
RGBrgb(137, 127, 28)
HSLhsl(54, 66%, 32%)
HSVhsv(54, 80%, 54%)
CMYKcmyk(0%, 7.3%, 79.6%, 46.3%)
CIE-LABlab(52.49, -7.46, 50.96)
CIE-LCHlch(52.49, 51.50, 98.33°)
OKLaboklab(58.79% -0.0263 0.1111)
OKLCHoklch(58.79% 0.114 103.3)
XYZxyz(18.1163, 20.5817, 4.1168)
Luminance0.2058 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F1C #1C2689
analogous
#89481C #897F1C #5D891C
triadic
#897F1C #1C897F #7F1C89
tetradic
#897F1C #1C8948 #1C2689 #891C5D
square
#897F1C #1C8948 #1C2689 #891C5D
split-complementary
#897F1C #1C5D89 #481C89
monochromatic
#232107 #565012 #897F1C #BCAE26 #D9CC46

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##897F1C#FFFFFF#000000##000000
##897F1C1.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)
#8B7B03
Deuteranopia (green-blind)
#8E7F24
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897f1c;
/* rgb */ color: rgb(137, 127, 28);
/* oklch */ color: oklch(58.8% 0.114 103.3);
Tailwind
colors: {
  custom: {
    50: '#afa361',
    500: '#897f1c',
    950: '#000000',
  },
}
SCSS
$custom: #897f1c;
$custom-light: #afa361;
$custom-dark: #000000;
JSON
{
  "hex": "#897f1c",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 54.495,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58787,
    "c": 0.11411,
    "h": 103.3
  },
  "luminance": 0.20581
}

Semantic roles & 50–950 ramp

primary
#897F1C
secondary
#4651BB
accent
#4EE93F
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #897F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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