#897822#897822

#897822 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.2% C 0.105 H 97.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#897822
RGBrgb(137, 120, 34)
HSLhsl(50, 60%, 34%)
HSVhsv(50, 75%, 54%)
CMYKcmyk(0%, 12.4%, 75.2%, 46.3%)
CIE-LABlab(50.53, -3.29, 46.91)
CIE-LCHlch(50.53, 47.02, 94.01°)
OKLaboklab(57.25% -0.0139 0.1037)
OKLCHoklch(57.25% 0.105 97.6)
XYZxyz(17.3226, 18.8677, 4.2425)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897822 #223389
analogous
#894422 #897822 #668922
triadic
#897822 #228978 #782289
tetradic
#897822 #228944 #223389 #892266
square
#897822 #228944 #223389 #892266
split-complementary
#897822 #226689 #442289
monochromatic
#27220A #584D16 #897822 #BAA32E #D4BE51

Accessibility & contrast

On white

4.40
#897822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#897822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897822
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897822#FFFFFF#000000##000000
##8978221.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#847514
Deuteranopia (green-blind)
#897B27
Tritanopia (blue-blind)
#946F67
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #897822;
/* rgb */ color: rgb(137, 120, 34);
/* oklch */ color: oklch(57.2% 0.105 97.6);
Tailwind
colors: {
  custom: {
    50: '#af9e63',
    500: '#897822',
    950: '#000000',
  },
}
SCSS
$custom: #897822;
$custom-light: #af9e63;
$custom-dark: #000000;
JSON
{
  "hex": "#897822",
  "rgb": {
    "r": 137,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 50.097,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57246,
    "c": 0.10459,
    "h": 97.6
  },
  "luminance": 0.18867
}

Semantic roles & 50–950 ramp

primary
#897822
secondary
#4F60B8
accent
#5FE344
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #897822

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

Preview Lab → · Contrast checker → · Palette generator →

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