#AFAA27#AFAA27

#AFAA27 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.143 H 107.2°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AFAA27
RGBrgb(175, 170, 39)
HSLhsl(58, 64%, 42%)
HSVhsv(58, 78%, 69%)
CMYKcmyk(0%, 2.9%, 77.7%, 31.4%)
CIE-LABlab(68.03, -12.84, 62.72)
CIE-LCHlch(68.03, 64.02, 101.57°)
OKLaboklab(72% -0.0423 0.1367)
OKLCHoklch(72% 0.143 107.2)
XYZxyz(32.4215, 38.0110, 7.5481)
Luminance0.3801 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA27 #272CAF
analogous
#AF6627 #AFAA27 #70AF27
triadic
#AFAA27 #27AFAA #AA27AF
tetradic
#AFAA27 #27AF66 #272CAF #AF2770
square
#AFAA27 #27AF66 #272CAF #AF2770
split-complementary
#AFAA27 #2770AF #6627AF
monochromatic
#4B4911 #7D791C #AFAA27 #D4CF3F #DFDB71

Accessibility & contrast

On white

2.44
#AFAA27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#AFAA27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA27
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA27#FFFFFF#000000##000000
##AFAA271.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A301
Deuteranopia (green-blind)
#BBA832
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa27;
/* rgb */ color: rgb(175, 170, 39);
/* oklch */ color: oklch(72.0% 0.143 107.2);
Tailwind
colors: {
  custom: {
    50: '#cbc36d',
    500: '#afaa27',
    950: '#000000',
  },
}
SCSS
$custom: #afaa27;
$custom-light: #cbc36d;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa27",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 39
  },
  "hsl": {
    "h": 57.794,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71999,
    "c": 0.14311,
    "h": 107.2
  },
  "luminance": 0.3801
}

Semantic roles & 50–950 ramp

primary
#AFAA27
secondary
#6B6FC6
accent
#47E741
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA27

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

Preview Lab → · Contrast checker → · Palette generator →

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