#A1AF27#A1AF27

#A1AF27 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#A1AF27
RGBrgb(161, 175, 39)
HSLhsl(66, 64%, 42%)
HSVhsv(66, 78%, 69%)
CMYKcmyk(8%, 0%, 77.7%, 31.4%)
CIE-LABlab(68.30, -21.45, 62.55)
CIE-LCHlch(68.30, 66.12, 108.93°)
OKLaboklab(71.94% -0.0655 0.1369)
OKLCHoklch(71.94% 0.152 115.6)
XYZxyz(30.3950, 38.3840, 7.7267)
Luminance0.3838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1AF27 #3527AF
analogous
#AF7927 #A1AF27 #5DAF27
triadic
#A1AF27 #27A1AF #AF27A1
tetradic
#A1AF27 #27AF79 #3527AF #AF275D
square
#A1AF27 #27AF79 #3527AF #AF275D
split-complementary
#A1AF27 #275DAF #7927AF
monochromatic
#454B11 #737D1C #A1AF27 #C5D43F #D4DF71

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A1AF27#FFFFFF#000000##000000
##A1AF271.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)
#BBA834
Tritanopia (blue-blind)
#ACA596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #a1af27;
/* rgb */ color: rgb(161, 175, 39);
/* oklch */ color: oklch(71.9% 0.152 115.6);
Tailwind
colors: {
  custom: {
    50: '#c0c66d',
    500: '#a1af27',
    950: '#000000',
  },
}
SCSS
$custom: #a1af27;
$custom-light: #c0c66d;
$custom-dark: #000000;
JSON
{
  "hex": "#a1af27",
  "rgb": {
    "r": 161,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 66.176,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71941,
    "c": 0.15176,
    "h": 115.6
  },
  "luminance": 0.38383
}

Semantic roles & 50–950 ramp

primary
#A1AF27
secondary
#756BC6
accent
#41E752
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A1AF27

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

Preview Lab → · Contrast checker → · Palette generator →

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