#A7951F#A7951F

#A7951F is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.6% C 0.130 H 99.9°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#A7951F
RGBrgb(167, 149, 31)
HSLhsl(52, 69%, 39%)
HSVhsv(52, 81%, 65%)
CMYKcmyk(0%, 10.8%, 81.4%, 34.5%)
CIE-LABlab(61.49, -5.60, 59.09)
CIE-LCHlch(61.49, 59.35, 95.42°)
OKLaboklab(66.61% -0.0223 0.1277)
OKLCHoklch(66.61% 0.13 99.9)
XYZxyz(26.9325, 29.8107, 5.6315)
Luminance0.2981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7951F #1F31A7
analogous
#A7511F #A7951F #75A71F
triadic
#A7951F #1FA795 #951FA7
tetradic
#A7951F #1FA751 #1F31A7 #A71F75
square
#A7951F #1FA751 #1F31A7 #A71F75
split-complementary
#A7951F #1F75A7 #511FA7
monochromatic
#40390C #736715 #A7951F #D8C12B #E1D05F

Accessibility & contrast

On white

3.02
#A7951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#A7951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A7951F
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7951F#FFFFFF#000000##000000
##A7951F1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49100
Deuteranopia (green-blind)
#A99728
Tritanopia (blue-blind)
#B5897F
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a7951f;
/* rgb */ color: rgb(167, 149, 31);
/* oklch */ color: oklch(66.6% 0.130 99.9);
Tailwind
colors: {
  custom: {
    50: '#c5b366',
    500: '#a7951f',
    950: '#000000',
  },
}
SCSS
$custom: #a7951f;
$custom-light: #c5b366;
$custom-dark: #000000;
JSON
{
  "hex": "#a7951f",
  "rgb": {
    "r": 167,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 52.059,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.66613,
    "c": 0.12964,
    "h": 99.9
  },
  "luminance": 0.29809
}

Semantic roles & 50–950 ramp

primary
#A7951F
secondary
#5C6AC6
accent
#53EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #A7951F

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

Preview Lab → · Contrast checker → · Palette generator →

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