#A5AF2E#A5AF2E

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

Color values

HEX#A5AF2E
RGBrgb(165, 175, 46)
HSLhsl(65, 58%, 43%)
HSVhsv(65, 74%, 69%)
CMYKcmyk(5.7%, 0%, 73.7%, 31.4%)
CIE-LABlab(68.65, -19.43, 60.69)
CIE-LCHlch(68.65, 63.73, 107.75°)
OKLaboklab(72.31% -0.0596 0.134)
OKLCHoklch(72.31% 0.147 114)
XYZxyz(31.3411, 38.8572, 8.4334)
Luminance0.3886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF2E #382EAF
analogous
#AF782E #A5AF2E #64AF2E
triadic
#A5AF2E #2EA5AF #AF2EA5
tetradic
#A5AF2E #2EAF78 #382EAF #AF2E64
square
#A5AF2E #2EAF78 #382EAF #AF2E64
split-complementary
#A5AF2E #2E64AF #782EAF
monochromatic
#4A4E15 #777F21 #A5AF2E #C5D04B #D5DC7B

Accessibility & contrast

On white

2.39
#A5AF2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5AF2E#FFFFFF#000000##000000
##A5AF2E1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5af2e;
/* rgb */ color: rgb(165, 175, 46);
/* oklch */ color: oklch(72.3% 0.147 114.0);
Tailwind
colors: {
  custom: {
    50: '#c3c670',
    500: '#a5af2e',
    950: '#000000',
  },
}
SCSS
$custom: #a5af2e;
$custom-light: #c3c670;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af2e",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 46
  },
  "hsl": {
    "h": 64.651,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.72306,
    "c": 0.14668,
    "h": 114
  },
  "luminance": 0.38857
}

Semantic roles & 50–950 ramp

primary
#A5AF2E
secondary
#7A74C5
accent
#46E252
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5AF2E

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

Preview Lab → · Contrast checker → · Palette generator →

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