#A5AF2B#A5AF2B

#A5AF2B 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#A5AF2B
RGBrgb(165, 175, 43)
HSLhsl(65, 61%, 43%)
HSVhsv(65, 75%, 69%)
CMYKcmyk(5.7%, 0%, 75.4%, 31.4%)
CIE-LABlab(68.63, -19.57, 61.69)
CIE-LCHlch(68.63, 64.72, 107.60°)
OKLaboklab(72.29% -0.0602 0.1356)
OKLCHoklch(72.29% 0.148 113.9)
XYZxyz(31.2840, 38.8343, 8.1328)
Luminance0.3883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AF2B #352BAF
analogous
#AF772B #A5AF2B #63AF2B
triadic
#A5AF2B #2BA5AF #AF2BA5
tetradic
#A5AF2B #2BAF77 #352BAF #AF2B63
square
#A5AF2B #2BAF77 #352BAF #AF2B63
split-complementary
#A5AF2B #2B63AF #772BAF
monochromatic
#484D13 #777E1F #A5AF2B #C7D146 #D6DE77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5AF2B#FFFFFF#000000##000000
##A5AF2B1.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)
#BCA60B
Deuteranopia (green-blind)
#BCA936
Tritanopia (blue-blind)
#B0A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a5af2b;
/* rgb */ color: rgb(165, 175, 43);
/* oklch */ color: oklch(72.3% 0.148 113.9);
Tailwind
colors: {
  custom: {
    50: '#c3c66f',
    500: '#a5af2b',
    950: '#000000',
  },
}
SCSS
$custom: #a5af2b;
$custom-light: #c3c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5af2b",
  "rgb": {
    "r": 165,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 64.545,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72287,
    "c": 0.14838,
    "h": 113.9
  },
  "luminance": 0.38834
}

Semantic roles & 50–950 ramp

primary
#A5AF2B
secondary
#7770C5
accent
#44E450
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5AF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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