#A7A02F#A7A02F

#A7A02F is a light, vivid yellow. Relative luminance 0.336; OKLCH L 69.1% C 0.130 H 105.8°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#A7A02F
RGBrgb(167, 160, 47)
HSLhsl(57, 56%, 42%)
HSVhsv(57, 72%, 65%)
CMYKcmyk(0%, 4.2%, 71.9%, 34.5%)
CIE-LABlab(64.61, -10.79, 56.51)
CIE-LCHlch(64.61, 57.53, 100.81°)
OKLaboklab(69.13% -0.0354 0.1253)
OKLCHoklch(69.13% 0.13 105.8)
XYZxyz(29.0214, 33.5634, 7.6384)
Luminance0.3356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A02F #2F36A7
analogous
#A7642F #A7A02F #72A72F
triadic
#A7A02F #2FA7A0 #A02FA7
tetradic
#A7A02F #2FA764 #2F36A7 #A72F72
square
#A7A02F #2FA764 #2F36A7 #A72F72
split-complementary
#A7A02F #2F72A7 #642FA7
monochromatic
#474414 #777222 #A7A02F #CBC448 #D9D378

Accessibility & contrast

On white

2.72
#A7A02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#A7A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A02F
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A02F#FFFFFF#000000##000000
##A7A02F1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1C
Deuteranopia (green-blind)
#B19F37
Tritanopia (blue-blind)
#B3958A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a7a02f;
/* rgb */ color: rgb(167, 160, 47);
/* oklch */ color: oklch(69.1% 0.130 105.8);
Tailwind
colors: {
  custom: {
    50: '#c4bb6f',
    500: '#a7a02f',
    950: '#000000',
  },
}
SCSS
$custom: #a7a02f;
$custom-light: #c4bb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a02f",
  "rgb": {
    "r": 167,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 56.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.69125,
    "c": 0.13022,
    "h": 105.8
  },
  "luminance": 0.33562
}

Semantic roles & 50–950 ramp

primary
#A7A02F
secondary
#7175C1
accent
#51DF48
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131108
muted
#82807B

Preview Lab

Preview with #A7A02F

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

Preview Lab → · Contrast checker → · Palette generator →

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