#A7981F#A7981F

#A7981F is a light, vivid yellow. Relative luminance 0.308; OKLCH L 67.3% C 0.132 H 101.7°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#A7981F
RGBrgb(167, 152, 31)
HSLhsl(53, 69%, 39%)
HSVhsv(53, 81%, 65%)
CMYKcmyk(0%, 9%, 81.4%, 34.5%)
CIE-LABlab(62.31, -7.21, 59.81)
CIE-LCHlch(62.31, 60.24, 96.88°)
OKLaboklab(67.27% -0.0269 0.1293)
OKLCHoklch(67.27% 0.132 101.7)
XYZxyz(27.4133, 30.7722, 5.7917)
Luminance0.3077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7981F #1F2EA7
analogous
#A7541F #A7981F #72A71F
triadic
#A7981F #1FA798 #981FA7
tetradic
#A7981F #1FA754 #1F2EA7 #A71F72
square
#A7981F #1FA754 #1F2EA7 #A71F72
split-complementary
#A7981F #1F72A7 #541FA7
monochromatic
#403A0C #736915 #A7981F #D8C52B #E1D35F

Accessibility & contrast

On white

2.94
#A7981F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#A7981F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7981F
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7981F#FFFFFF#000000##000000
##A7981F1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#AB9929
Tritanopia (blue-blind)
#B48C82
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #a7981f;
/* rgb */ color: rgb(167, 152, 31);
/* oklch */ color: oklch(67.3% 0.132 101.7);
Tailwind
colors: {
  custom: {
    50: '#c5b567',
    500: '#a7981f',
    950: '#000000',
  },
}
SCSS
$custom: #a7981f;
$custom-light: #c5b567;
$custom-dark: #000000;
JSON
{
  "hex": "#a7981f",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 53.382,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.67268,
    "c": 0.13202,
    "h": 101.7
  },
  "luminance": 0.30771
}

Semantic roles & 50–950 ramp

primary
#A7981F
secondary
#5C68C6
accent
#50EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #A7981F

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

Preview Lab → · Contrast checker → · Palette generator →

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