#AFAC46#AFAC46

#AFAC46 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.124 H 107.5°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#AFAC46
RGBrgb(175, 172, 70)
HSLhsl(58, 43%, 48%)
HSVhsv(58, 60%, 69%)
CMYKcmyk(0%, 1.7%, 60%, 31.4%)
CIE-LABlab(68.80, -12.18, 51.48)
CIE-LCHlch(68.80, 52.90, 103.31°)
OKLaboklab(72.68% -0.0373 0.1181)
OKLCHoklch(72.68% 0.124 107.5)
XYZxyz(33.5383, 39.0622, 11.5662)
Luminance0.3906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC46 #4649AF
analogous
#AF7746 #AFAC46 #7DAF46
triadic
#AFAC46 #46AFAC #AC46AF
tetradic
#AFAC46 #46AF77 #4649AF #AF467D
square
#AFAC46 #46AF77 #4649AF #AF467D
split-complementary
#AFAC46 #467DAF #7746AF
monochromatic
#585623 #838135 #AFAC46 #C5C26D #D6D599

Accessibility & contrast

On white

2.38
#AFAC46 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#AFAC46 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC46
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC46#FFFFFF#000000##000000
##AFAC461.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A63A
Deuteranopia (green-blind)
#BBAA4C
Tritanopia (blue-blind)
#BBA296
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac46;
/* rgb */ color: rgb(175, 172, 70);
/* oklch */ color: oklch(72.7% 0.124 107.5);
Tailwind
colors: {
  custom: {
    50: '#c9c47e',
    500: '#afac46',
    950: '#000000',
  },
}
SCSS
$custom: #afac46;
$custom-light: #c9c47e;
$custom-dark: #000000;
JSON
{
  "hex": "#afac46",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 70
  },
  "hsl": {
    "h": 58.286,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.7268,
    "c": 0.1239,
    "h": 107.5
  },
  "luminance": 0.39061
}

Semantic roles & 50–950 ramp

primary
#AFAC46
secondary
#8E90C2
accent
#59D355
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAC46

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

Preview Lab → · Contrast checker → · Palette generator →

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