#A5A12F#A5A12F

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

Color values

HEX#A5A12F
RGBrgb(165, 161, 47)
HSLhsl(58, 56%, 42%)
HSVhsv(58, 72%, 65%)
CMYKcmyk(0%, 2.4%, 71.5%, 35.3%)
CIE-LABlab(64.72, -12.19, 56.55)
CIE-LCHlch(64.72, 57.85, 102.17°)
OKLaboklab(69.17% -0.0393 0.1255)
OKLCHoklch(69.17% 0.131 107.4)
XYZxyz(28.7761, 33.6953, 7.6768)
Luminance0.3369 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A12F #2F33A5
analogous
#A5662F #A5A12F #6EA52F
triadic
#A5A12F #2FA5A1 #A12FA5
tetradic
#A5A12F #2FA566 #2F33A5 #A52F6E
square
#A5A12F #2FA566 #2F33A5 #A52F6E
split-complementary
#A5A12F #2F6EA5 #662FA5
monochromatic
#464414 #757321 #A5A12F #CBC647 #D8D576

Accessibility & contrast

On white

2.71
#A5A12F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#A5A12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A12F
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A12F#FFFFFF#000000##000000
##A5A12F1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5a12f;
/* rgb */ color: rgb(165, 161, 47);
/* oklch */ color: oklch(69.2% 0.131 107.4);
Tailwind
colors: {
  custom: {
    50: '#c3bc6f',
    500: '#a5a12f',
    950: '#000000',
  },
}
SCSS
$custom: #a5a12f;
$custom-light: #c3bc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a12f",
  "rgb": {
    "r": 165,
    "g": 161,
    "b": 47
  },
  "hsl": {
    "h": 57.966,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.69167,
    "c": 0.13147,
    "h": 107.4
  },
  "luminance": 0.33694
}

Semantic roles & 50–950 ramp

primary
#A5A12F
secondary
#7072C0
accent
#4EDF49
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A5A12F

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

Preview Lab → · Contrast checker → · Palette generator →

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