#A1AF26#A1AF26

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

Color values

HEX#A1AF26
RGBrgb(161, 175, 38)
HSLhsl(66, 64%, 42%)
HSVhsv(66, 78%, 69%)
CMYKcmyk(8%, 0%, 78.3%, 31.4%)
CIE-LABlab(68.30, -21.49, 62.85)
CIE-LCHlch(68.30, 66.42, 108.88°)
OKLaboklab(71.94% -0.0657 0.1373)
OKLCHoklch(71.94% 0.152 115.6)
XYZxyz(30.3786, 38.3775, 7.6406)
Luminance0.3838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1AF26 #3426AF
analogous
#AF7826 #A1AF26 #5DAF26
triadic
#A1AF26 #26A1AF #AF26A1
tetradic
#A1AF26 #26AF78 #3426AF #AF265D
square
#A1AF26 #26AF78 #3426AF #AF265D
split-complementary
#A1AF26 #265DAF #7826AF
monochromatic
#444A10 #737D1B #A1AF26 #C5D53D #D4E070

Accessibility & contrast

On white

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

On black

8.68
#A1AF26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1AF26
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1AF26#FFFFFF#000000##000000
##A1AF261.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a1af26;
/* rgb */ color: rgb(161, 175, 38);
/* oklch */ color: oklch(71.9% 0.152 115.6);
Tailwind
colors: {
  custom: {
    50: '#c0c66d',
    500: '#a1af26',
    950: '#000000',
  },
}
SCSS
$custom: #a1af26;
$custom-light: #c0c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#a1af26",
  "rgb": {
    "r": 161,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 66.131,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.71936,
    "c": 0.15225,
    "h": 115.6
  },
  "luminance": 0.38377
}

Semantic roles & 50–950 ramp

primary
#A1AF26
secondary
#746AC7
accent
#40E752
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A1AF26

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

Preview Lab → · Contrast checker → · Palette generator →

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