#9A842E#9A842E

#9A842E is a mid, moderate yellow. Relative luminance 0.236; OKLCH L 61.7% C 0.107 H 94.5°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9A842E
RGBrgb(154, 132, 46)
HSLhsl(48, 54%, 39%)
HSVhsv(48, 70%, 60%)
CMYKcmyk(0%, 14.3%, 70.1%, 39.6%)
CIE-LABlab(55.66, -1.53, 47.56)
CIE-LCHlch(55.66, 47.58, 91.84°)
OKLaboklab(61.72% -0.0085 0.1067)
OKLCHoklch(61.72% 0.107 94.5)
XYZxyz(22.0719, 23.5710, 5.9713)
Luminance0.2357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A842E #2E449A
analogous
#9A4E2E #9A842E #7A9A2E
triadic
#9A842E #2E9A84 #842E9A
tetradic
#9A842E #2E9A4E #2E449A #9A2E7A
square
#9A842E #2E9A4E #2E449A #9A2E7A
split-complementary
#9A842E #2E7A9A #4E2E9A
monochromatic
#3C3312 #6B5C20 #9A842E #C6AA3F #D4BF6F

Accessibility & contrast

On white

3.68
#9A842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#9A842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A842E
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A842E#FFFFFF#000000##000000
##9A842E1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928122
Deuteranopia (green-blind)
#978833
Tritanopia (blue-blind)
#A67A72
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9a842e;
/* rgb */ color: rgb(154, 132, 46);
/* oklch */ color: oklch(61.7% 0.107 94.5);
Tailwind
colors: {
  custom: {
    50: '#bba76c',
    500: '#9a842e',
    950: '#000000',
  },
}
SCSS
$custom: #9a842e;
$custom-light: #bba76c;
$custom-dark: #000000;
JSON
{
  "hex": "#9a842e",
  "rgb": {
    "r": 154,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 47.778,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61725,
    "c": 0.10703,
    "h": 94.5
  },
  "luminance": 0.2357
}

Semantic roles & 50–950 ramp

primary
#9A842E
secondary
#6979BB
accent
#68DD4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9A842E

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

Preview Lab → · Contrast checker → · Palette generator →

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