#A1AF2D#A1AF2D

#A1AF2D is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.0% C 0.149 H 115.7°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#A1AF2D
RGBrgb(161, 175, 45)
HSLhsl(66, 59%, 43%)
HSVhsv(66, 74%, 69%)
CMYKcmyk(8%, 0%, 74.3%, 31.4%)
CIE-LABlab(68.33, -21.19, 60.63)
CIE-LCHlch(68.33, 64.22, 109.26°)
OKLaboklab(71.98% -0.0643 0.1339)
OKLCHoklch(71.98% 0.149 115.7)
XYZxyz(30.5024, 38.4270, 8.2924)
Luminance0.3843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1AF2D #3B2DAF
analogous
#AF7C2D #A1AF2D #60AF2D
triadic
#A1AF2D #2DA1AF #AF2DA1
tetradic
#A1AF2D #2DAF7C #3B2DAF #AF2D60
square
#A1AF2D #2DAF7C #3B2DAF #AF2D60
split-complementary
#A1AF2D #2D60AF #7C2DAF
monochromatic
#474E14 #747E20 #A1AF2D #C2D049 #D2DD7A

Accessibility & contrast

On white

2.42
#A1AF2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#A1AF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1AF2D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1AF2D#FFFFFF#000000##000000
##A1AF2D1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA611
Deuteranopia (green-blind)
#BAA838
Tritanopia (blue-blind)
#ABA596
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a1af2d;
/* rgb */ color: rgb(161, 175, 45);
/* oklch */ color: oklch(72.0% 0.149 115.7);
Tailwind
colors: {
  custom: {
    50: '#c0c670',
    500: '#a1af2d',
    950: '#000000',
  },
}
SCSS
$custom: #a1af2d;
$custom-light: #c0c670;
$custom-dark: #000000;
JSON
{
  "hex": "#a1af2d",
  "rgb": {
    "r": 161,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 66.462,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71976,
    "c": 0.14852,
    "h": 115.7
  },
  "luminance": 0.38426
}

Semantic roles & 50–950 ramp

primary
#A1AF2D
secondary
#7C73C5
accent
#46E256
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A1AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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