#A8A02F#A8A02F

#A8A02F is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.2% C 0.130 H 105.3°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#A8A02F
RGBrgb(168, 160, 47)
HSLhsl(56, 56%, 42%)
HSVhsv(56, 72%, 66%)
CMYKcmyk(0%, 4.8%, 72%, 34.1%)
CIE-LABlab(64.70, -10.35, 56.62)
CIE-LCHlch(64.70, 57.56, 100.35°)
OKLaboklab(69.22% -0.0342 0.1255)
OKLCHoklch(69.22% 0.13 105.3)
XYZxyz(29.2335, 33.6728, 7.6484)
Luminance0.3367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A02F #2F37A8
analogous
#A8642F #A8A02F #74A82F
triadic
#A8A02F #2FA8A0 #A02FA8
tetradic
#A8A02F #2FA864 #2F37A8 #A82F74
square
#A8A02F #2FA864 #2F37A8 #A82F74
split-complementary
#A8A02F #2F74A8 #642FA8
monochromatic
#484514 #787222 #A8A02F #CCC348 #D9D378

Accessibility & contrast

On white

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

On black

7.73
#A8A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A02F
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A02F#FFFFFF#000000##000000
##A8A02F1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8a02f;
/* rgb */ color: rgb(168, 160, 47);
/* oklch */ color: oklch(69.2% 0.130 105.3);
Tailwind
colors: {
  custom: {
    50: '#c5bb6f',
    500: '#a8a02f',
    950: '#000000',
  },
}
SCSS
$custom: #a8a02f;
$custom-light: #c5bb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a02f",
  "rgb": {
    "r": 168,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 56.033,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.69216,
    "c": 0.1301,
    "h": 105.3
  },
  "luminance": 0.33672
}

Semantic roles & 50–950 ramp

primary
#A8A02F
secondary
#7177C1
accent
#52E048
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131108
muted
#82807B

Preview Lab

Preview with #A8A02F

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

Preview Lab → · Contrast checker → · Palette generator →

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