#AFAB3D#AFAB3D

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

Color values

HEX#AFAB3D
RGBrgb(175, 171, 61)
HSLhsl(58, 48%, 46%)
HSVhsv(58, 65%, 69%)
CMYKcmyk(0%, 2.3%, 65.1%, 31.4%)
CIE-LABlab(68.44, -12.26, 55.01)
CIE-LCHlch(68.44, 56.36, 102.56°)
OKLaboklab(72.38% -0.0385 0.1243)
OKLCHoklch(72.38% 0.13 107.2)
XYZxyz(33.0856, 38.5778, 10.1174)
Luminance0.3858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB3D #3D41AF
analogous
#AF723D #AFAB3D #7AAF3D
triadic
#AFAB3D #3DAFAB #AB3DAF
tetradic
#AFAB3D #3DAF72 #3D41AF #AF3D7A
square
#AFAB3D #3DAF72 #3D41AF #AF3D7A
split-complementary
#AFAB3D #3D7AAF #723DAF
monochromatic
#54521D #827F2D #AFAB3D #C8C461 #D8D58F

Accessibility & contrast

On white

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

On black

8.72
#AFAB3D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB3D
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB3D#FFFFFF#000000##000000
##AFAB3D1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afab3d;
/* rgb */ color: rgb(175, 171, 61);
/* oklch */ color: oklch(72.4% 0.130 107.2);
Tailwind
colors: {
  custom: {
    50: '#cac378',
    500: '#afab3d',
    950: '#000000',
  },
}
SCSS
$custom: #afab3d;
$custom-light: #cac378;
$custom-dark: #000000;
JSON
{
  "hex": "#afab3d",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 61
  },
  "hsl": {
    "h": 57.895,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.72375,
    "c": 0.13012,
    "h": 107.2
  },
  "luminance": 0.38577
}

Semantic roles & 50–950 ramp

primary
#AFAB3D
secondary
#8587C3
accent
#55D850
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB3D

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

Preview Lab → · Contrast checker → · Palette generator →

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