#9A862F#9A862F

#9A862F is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.2% C 0.108 H 96.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9A862F
RGBrgb(154, 134, 47)
HSLhsl(49, 53%, 39%)
HSVhsv(49, 69%, 60%)
CMYKcmyk(0%, 13%, 69.5%, 39.6%)
CIE-LABlab(56.21, -2.58, 47.70)
CIE-LCHlch(56.21, 47.77, 93.10°)
OKLaboklab(62.17% -0.0114 0.1072)
OKLCHoklch(62.17% 0.108 96.1)
XYZxyz(22.3657, 24.1266, 6.1676)
Luminance0.2412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A862F #2F439A
analogous
#9A512F #9A862F #799A2F
triadic
#9A862F #2F9A86 #862F9A
tetradic
#9A862F #2F9A51 #2F439A #9A2F79
square
#9A862F #2F9A51 #2F439A #9A2F79
split-complementary
#9A862F #2F799A #512F9A
monochromatic
#3C3412 #6B5D21 #9A862F #C5AC41 #D3C170

Accessibility & contrast

On white

3.61
#9A862F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#9A862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A862F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A862F#FFFFFF#000000##000000
##9A862F1.003.615.835.83
#FFFFFF3.611.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948323
Deuteranopia (green-blind)
#998A34
Tritanopia (blue-blind)
#A67C74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9a862f;
/* rgb */ color: rgb(154, 134, 47);
/* oklch */ color: oklch(62.2% 0.108 96.1);
Tailwind
colors: {
  custom: {
    50: '#bba86c',
    500: '#9a862f',
    950: '#000000',
  },
}
SCSS
$custom: #9a862f;
$custom-light: #bba86c;
$custom-dark: #000000;
JSON
{
  "hex": "#9a862f",
  "rgb": {
    "r": 154,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 48.785,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.6217,
    "c": 0.10776,
    "h": 96.1
  },
  "luminance": 0.24125
}

Semantic roles & 50–950 ramp

primary
#9A862F
secondary
#6A79BB
accent
#66DD4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9A862F

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

Preview Lab → · Contrast checker → · Palette generator →

#9A862F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva