#A5A02F#A5A02F

#A5A02F is a light, vivid yellow. Relative luminance 0.333; OKLCH L 68.9% C 0.130 H 106.8°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#A5A02F
RGBrgb(165, 160, 47)
HSLhsl(57, 56%, 42%)
HSVhsv(57, 72%, 65%)
CMYKcmyk(0%, 3%, 71.5%, 35.3%)
CIE-LABlab(64.44, -11.67, 56.28)
CIE-LCHlch(64.44, 57.47, 101.71°)
OKLaboklab(68.95% -0.0378 0.1249)
OKLCHoklch(68.95% 0.13 106.8)
XYZxyz(28.6021, 33.3472, 7.6188)
Luminance0.3335 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A02F #2F34A5
analogous
#A5652F #A5A02F #6FA52F
triadic
#A5A02F #2FA5A0 #A02FA5
tetradic
#A5A02F #2FA565 #2F34A5 #A52F6F
square
#A5A02F #2FA565 #2F34A5 #A52F6F
split-complementary
#A5A02F #2F6FA5 #652FA5
monochromatic
#464414 #757221 #A5A02F #CBC547 #D8D476

Accessibility & contrast

On white

2.74
#A5A02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#A5A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A02F
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A02F#FFFFFF#000000##000000
##A5A02F1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1C
Deuteranopia (green-blind)
#B09E37
Tritanopia (blue-blind)
#B1958A
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #a5a02f;
/* rgb */ color: rgb(165, 160, 47);
/* oklch */ color: oklch(68.9% 0.130 106.8);
Tailwind
colors: {
  custom: {
    50: '#c3bb6f',
    500: '#a5a02f',
    950: '#000000',
  },
}
SCSS
$custom: #a5a02f;
$custom-light: #c3bb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a02f",
  "rgb": {
    "r": 165,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 57.458,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.68945,
    "c": 0.13049,
    "h": 106.8
  },
  "luminance": 0.33346
}

Semantic roles & 50–950 ramp

primary
#A5A02F
secondary
#7073C0
accent
#4FDF49
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131108
muted
#82807B

Preview Lab

Preview with #A5A02F

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

Preview Lab → · Contrast checker → · Palette generator →

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