#AFAB46#AFAB46

#AFAB46 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.123 H 107.0°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#AFAB46
RGBrgb(175, 171, 70)
HSLhsl(58, 43%, 48%)
HSVhsv(58, 60%, 69%)
CMYKcmyk(0%, 2.3%, 60%, 31.4%)
CIE-LABlab(68.52, -11.66, 51.18)
CIE-LCHlch(68.52, 52.49, 102.83°)
OKLaboklab(72.46% -0.0358 0.1175)
OKLCHoklch(72.46% 0.123 107)
XYZxyz(33.3487, 38.6830, 11.5030)
Luminance0.3868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB46 #464AAF
analogous
#AF7646 #AFAB46 #7EAF46
triadic
#AFAB46 #46AFAB #AB46AF
tetradic
#AFAB46 #46AF76 #464AAF #AF467E
square
#AFAB46 #46AF76 #464AAF #AF467E
split-complementary
#AFAB46 #467EAF #7646AF
monochromatic
#585623 #838035 #AFAB46 #C5C16D #D6D499

Accessibility & contrast

On white

2.40
#AFAB46 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#AFAB46 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB46
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB46#FFFFFF#000000##000000
##AFAB461.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A53B
Deuteranopia (green-blind)
#BBA94C
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab46;
/* rgb */ color: rgb(175, 171, 70);
/* oklch */ color: oklch(72.5% 0.123 107.0);
Tailwind
colors: {
  custom: {
    50: '#c9c37e',
    500: '#afab46',
    950: '#000000',
  },
}
SCSS
$custom: #afab46;
$custom-light: #c9c37e;
$custom-dark: #000000;
JSON
{
  "hex": "#afab46",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 70
  },
  "hsl": {
    "h": 57.714,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.7246,
    "c": 0.12285,
    "h": 107
  },
  "luminance": 0.38682
}

Semantic roles & 50–950 ramp

primary
#AFAB46
secondary
#8E90C2
accent
#5AD355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAB46

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

Preview Lab → · Contrast checker → · Palette generator →

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