#AFAB43#AFAB43

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

Color values

HEX#AFAB43
RGBrgb(175, 171, 67)
HSLhsl(58, 45%, 47%)
HSVhsv(58, 62%, 69%)
CMYKcmyk(0%, 2.3%, 61.7%, 31.4%)
CIE-LABlab(68.49, -11.87, 52.48)
CIE-LCHlch(68.49, 53.81, 102.74°)
OKLaboklab(72.43% -0.0368 0.1199)
OKLCHoklch(72.43% 0.125 107.1)
XYZxyz(33.2563, 38.6461, 11.0167)
Luminance0.3865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB43 #4347AF
analogous
#AF7543 #AFAB43 #7DAF43
triadic
#AFAB43 #43AFAB #AB43AF
tetradic
#AFAB43 #43AF75 #4347AF #AF437D
square
#AFAB43 #43AF75 #4347AF #AF437D
split-complementary
#AFAB43 #437DAF #7543AF
monochromatic
#565521 #838032 #AFAB43 #C6C269 #D7D496

Accessibility & contrast

On white

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

On black

8.73
#AFAB43 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB43
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB43#FFFFFF#000000##000000
##AFAB431.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A537
Deuteranopia (green-blind)
#BBA949
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab43;
/* rgb */ color: rgb(175, 171, 67);
/* oklch */ color: oklch(72.4% 0.125 107.1);
Tailwind
colors: {
  custom: {
    50: '#cac37c',
    500: '#afab43',
    950: '#000000',
  },
}
SCSS
$custom: #afab43;
$custom-light: #cac37c;
$custom-dark: #000000;
JSON
{
  "hex": "#afab43",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 67
  },
  "hsl": {
    "h": 57.778,
    "s": 44.628,
    "l": 47.451
  },
  "oklch": {
    "l": 0.7243,
    "c": 0.12537,
    "h": 107.1
  },
  "luminance": 0.38645
}

Semantic roles & 50–950 ramp

primary
#AFAB43
secondary
#8B8DC2
accent
#58D453
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAB43

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

Preview Lab → · Contrast checker → · Palette generator →

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