#A7942F#A7942F

#A7942F is a light, moderate yellow. Relative luminance 0.296; OKLCH L 66.5% C 0.120 H 98.3°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#A7942F
RGBrgb(167, 148, 47)
HSLhsl(51, 56%, 42%)
HSVhsv(51, 72%, 65%)
CMYKcmyk(0%, 11.4%, 71.9%, 34.5%)
CIE-LABlab(61.31, -4.38, 53.25)
CIE-LCHlch(61.31, 53.43, 94.70°)
OKLaboklab(66.5% -0.0173 0.1184)
OKLCHoklch(66.5% 0.12 98.3)
XYZxyz(27.0406, 29.6019, 6.9782)
Luminance0.2960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7942F #2F42A7
analogous
#A7582F #A7942F #7EA72F
triadic
#A7942F #2FA794 #942FA7
tetradic
#A7942F #2FA758 #2F42A7 #A72F7E
square
#A7942F #2FA758 #2F42A7 #A72F7E
split-complementary
#A7942F #2F7EA7 #582FA7
monochromatic
#473F14 #776A22 #A7942F #CBB748 #D9C978

Accessibility & contrast

On white

3.03
#A7942F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#A7942F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A7942F
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7942F#FFFFFF#000000##000000
##A7942F1.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39020
Deuteranopia (green-blind)
#A89735
Tritanopia (blue-blind)
#B48980
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a7942f;
/* rgb */ color: rgb(167, 148, 47);
/* oklch */ color: oklch(66.5% 0.120 98.3);
Tailwind
colors: {
  custom: {
    50: '#c5b36e',
    500: '#a7942f',
    950: '#000000',
  },
}
SCSS
$custom: #a7942f;
$custom-light: #c5b36e;
$custom-dark: #000000;
JSON
{
  "hex": "#a7942f",
  "rgb": {
    "r": 167,
    "g": 148,
    "b": 47
  },
  "hsl": {
    "h": 50.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.66499,
    "c": 0.1197,
    "h": 98.3
  },
  "luminance": 0.29601
}

Semantic roles & 50–950 ramp

primary
#A7942F
secondary
#717EC1
accent
#60DF48
background
#FCFAF6
surface
#F8F5EC
border
#D1CFC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #A7942F

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

Preview Lab → · Contrast checker → · Palette generator →

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