#A5AF2C#A5AF2C

#A5AF2C is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.3% C 0.148 H 113.9°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#A5AF2C
RGBrgb(165, 175, 44)
HSLhsl(65, 60%, 43%)
HSVhsv(65, 75%, 69%)
CMYKcmyk(5.7%, 0%, 74.9%, 31.4%)
CIE-LABlab(68.64, -19.52, 61.36)
CIE-LCHlch(68.64, 64.39, 107.65°)
OKLaboklab(72.29% -0.06 0.1351)
OKLCHoklch(72.29% 0.148 113.9)
XYZxyz(31.3026, 38.8418, 8.2306)
Luminance0.3884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF2C #362CAF
analogous
#AF772C #A5AF2C #63AF2C
triadic
#A5AF2C #2CA5AF #AF2CA5
tetradic
#A5AF2C #2CAF77 #362CAF #AF2C63
square
#A5AF2C #2CAF77 #362CAF #AF2C63
split-complementary
#A5AF2C #2C63AF #772CAF
monochromatic
#494D13 #777E20 #A5AF2C #C6D147 #D5DD78

Accessibility & contrast

On white

2.40
#A5AF2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#A5AF2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AF2C
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AF2C#FFFFFF#000000##000000
##A5AF2C1.002.408.778.77
#FFFFFF2.401.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA60E
Deuteranopia (green-blind)
#BCA937
Tritanopia (blue-blind)
#B0A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a5af2c;
/* rgb */ color: rgb(165, 175, 44);
/* oklch */ color: oklch(72.3% 0.148 113.9);
Tailwind
colors: {
  custom: {
    50: '#c3c66f',
    500: '#a5af2c',
    950: '#000000',
  },
}
SCSS
$custom: #a5af2c;
$custom-light: #c3c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af2c",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 64.58,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.72293,
    "c": 0.14783,
    "h": 113.9
  },
  "luminance": 0.38841
}

Semantic roles & 50–950 ramp

primary
#A5AF2C
secondary
#7872C5
accent
#45E351
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5AF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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