#AFAB3C#AFAB3C

#AFAB3C is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.4% C 0.131 H 107.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFAB3C
RGBrgb(175, 171, 60)
HSLhsl(58, 49%, 46%)
HSVhsv(58, 66%, 69%)
CMYKcmyk(0%, 2.3%, 65.7%, 31.4%)
CIE-LABlab(68.44, -12.32, 55.41)
CIE-LCHlch(68.44, 56.77, 102.53°)
OKLaboklab(72.37% -0.0388 0.125)
OKLCHoklch(72.37% 0.131 107.3)
XYZxyz(33.0589, 38.5671, 9.9769)
Luminance0.3857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB3C #3C40AF
analogous
#AF713C #AFAB3C #79AF3C
triadic
#AFAB3C #3CAFAB #AB3CAF
tetradic
#AFAB3C #3CAF71 #3C40AF #AF3C79
square
#AFAB3C #3CAF71 #3C40AF #AF3C79
split-complementary
#AFAB3C #3C79AF #713CAF
monochromatic
#54521D #817E2C #AFAB3C #C8C560 #D8D58D

Accessibility & contrast

On white

2.41
#AFAB3C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#AFAB3C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB3C
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB3C#FFFFFF#000000##000000
##AFAB3C1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A52D
Deuteranopia (green-blind)
#BBA943
Tritanopia (blue-blind)
#BBA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab3c;
/* rgb */ color: rgb(175, 171, 60);
/* oklch */ color: oklch(72.4% 0.131 107.3);
Tailwind
colors: {
  custom: {
    50: '#cac378',
    500: '#afab3c',
    950: '#000000',
  },
}
SCSS
$custom: #afab3c;
$custom-light: #cac378;
$custom-dark: #000000;
JSON
{
  "hex": "#afab3c",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 60
  },
  "hsl": {
    "h": 57.913,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72366,
    "c": 0.13088,
    "h": 107.3
  },
  "luminance": 0.38566
}

Semantic roles & 50–950 ramp

primary
#AFAB3C
secondary
#8486C3
accent
#54D84F
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB3C

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

Preview Lab → · Contrast checker → · Palette generator →

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