#897E23#897E23

#897E23 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.6% C 0.109 H 102.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#897E23
RGBrgb(137, 126, 35)
HSLhsl(54, 59%, 34%)
HSVhsv(54, 74%, 54%)
CMYKcmyk(0%, 8%, 74.5%, 46.3%)
CIE-LABlab(52.24, -6.59, 48.17)
CIE-LCHlch(52.24, 48.62, 97.79°)
OKLaboklab(58.61% -0.0231 0.1065)
OKLCHoklch(58.61% 0.109 102.2)
XYZxyz(18.0816, 20.3622, 4.5676)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897E23 #232E89
analogous
#894B23 #897E23 #618923
triadic
#897E23 #23897E #7E2389
tetradic
#897E23 #23894B #232E89 #892361
square
#897E23 #23894B #232E89 #892361
split-complementary
#897E23 #236189 #4B2389
monochromatic
#28240A #585117 #897E23 #BAAB2F #D3C553

Accessibility & contrast

On white

4.14
#897E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#897E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897E23
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897E23#FFFFFF#000000##000000
##897E231.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #897e23;
/* rgb */ color: rgb(137, 126, 35);
/* oklch */ color: oklch(58.6% 0.109 102.2);
Tailwind
colors: {
  custom: {
    50: '#afa365',
    500: '#897e23',
    950: '#000000',
  },
}
SCSS
$custom: #897e23;
$custom-light: #afa365;
$custom-dark: #000000;
JSON
{
  "hex": "#897e23",
  "rgb": {
    "r": 137,
    "g": 126,
    "b": 35
  },
  "hsl": {
    "h": 53.529,
    "s": 59.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58606,
    "c": 0.10902,
    "h": 102.2
  },
  "luminance": 0.20361
}

Semantic roles & 50–950 ramp

primary
#897E23
secondary
#515CB7
accent
#56E245
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897E23

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

Preview Lab → · Contrast checker → · Palette generator →

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