#A1AF23#A1AF23

#A1AF23 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 71.9% C 0.154 H 115.6°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#A1AF23
RGBrgb(161, 175, 35)
HSLhsl(66, 67%, 41%)
HSVhsv(66, 80%, 69%)
CMYKcmyk(8%, 0%, 80%, 31.4%)
CIE-LABlab(68.28, -21.61, 63.71)
CIE-LCHlch(68.28, 67.28, 108.74°)
OKLaboklab(71.92% -0.0663 0.1387)
OKLCHoklch(71.92% 0.154 115.6)
XYZxyz(30.3322, 38.3589, 7.3959)
Luminance0.3836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1AF23 #3123AF
analogous
#AF7723 #A1AF23 #5BAF23
triadic
#A1AF23 #23A1AF #AF23A1
tetradic
#A1AF23 #23AF77 #3123AF #AF235B
square
#A1AF23 #23AF77 #3123AF #AF235B
split-complementary
#A1AF23 #235BAF #7723AF
monochromatic
#43490F #727C19 #A1AF23 #C7D738 #D6E16B

Accessibility & contrast

On white

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

On black

8.67
#A1AF23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1AF23
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1AF23#FFFFFF#000000##000000
##A1AF231.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#BBA731
Tritanopia (blue-blind)
#ACA496
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #a1af23;
/* rgb */ color: rgb(161, 175, 35);
/* oklch */ color: oklch(71.9% 0.154 115.6);
Tailwind
colors: {
  custom: {
    50: '#c1c66b',
    500: '#a1af23',
    950: '#000000',
  },
}
SCSS
$custom: #a1af23;
$custom-light: #c1c66b;
$custom-dark: #000000;
JSON
{
  "hex": "#a1af23",
  "rgb": {
    "r": 161,
    "g": 175,
    "b": 35
  },
  "hsl": {
    "h": 66,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.7192,
    "c": 0.15368,
    "h": 115.6
  },
  "luminance": 0.38358
}

Semantic roles & 50–950 ramp

primary
#A1AF23
secondary
#7066C7
accent
#3EEA4F
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1AF23

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

Preview Lab → · Contrast checker → · Palette generator →

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