#AFAB38#AFAB38

#AFAB38 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.134 H 107.4°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#AFAB38
RGBrgb(175, 171, 56)
HSLhsl(58, 52%, 45%)
HSVhsv(58, 68%, 69%)
CMYKcmyk(0%, 2.3%, 68%, 31.4%)
CIE-LABlab(68.41, -12.55, 57.01)
CIE-LCHlch(68.41, 58.37, 102.42°)
OKLaboklab(72.33% -0.0399 0.1277)
OKLCHoklch(72.33% 0.134 107.4)
XYZxyz(32.9571, 38.5264, 9.4409)
Luminance0.3852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB38 #383CAF
analogous
#AF6F38 #AFAB38 #78AF38
triadic
#AFAB38 #38AFAB #AB38AF
tetradic
#AFAB38 #38AF6F #383CAF #AF3878
square
#AFAB38 #38AF6F #383CAF #AF3878
split-complementary
#AFAB38 #3878AF #6F38AF
monochromatic
#52501A #817E29 #AFAB38 #CAC65A #D9D688

Accessibility & contrast

On white

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

On black

8.70
#AFAB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB38
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB38#FFFFFF#000000##000000
##AFAB381.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A427
Deuteranopia (green-blind)
#BBA940
Tritanopia (blue-blind)
#BCA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab38;
/* rgb */ color: rgb(175, 171, 56);
/* oklch */ color: oklch(72.3% 0.134 107.4);
Tailwind
colors: {
  custom: {
    50: '#cac375',
    500: '#afab38',
    950: '#000000',
  },
}
SCSS
$custom: #afab38;
$custom-light: #cac375;
$custom-dark: #000000;
JSON
{
  "hex": "#afab38",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 57.983,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72333,
    "c": 0.13378,
    "h": 107.4
  },
  "luminance": 0.38525
}

Semantic roles & 50–950 ramp

primary
#AFAB38
secondary
#8082C3
accent
#52DB4D
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB38

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

Preview Lab → · Contrast checker → · Palette generator →

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