#AFAB30#AFAB30

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

Color values

HEX#AFAB30
RGBrgb(175, 171, 48)
HSLhsl(58, 57%, 44%)
HSVhsv(58, 73%, 69%)
CMYKcmyk(0%, 2.3%, 72.6%, 31.4%)
CIE-LABlab(68.35, -12.97, 59.99)
CIE-LCHlch(68.35, 61.37, 102.20°)
OKLaboklab(72.27% -0.0419 0.1326)
OKLCHoklch(72.27% 0.139 107.5)
XYZxyz(32.7769, 38.4543, 8.4916)
Luminance0.3845 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB30 #3034AF
analogous
#AF6B30 #AFAB30 #73AF30
triadic
#AFAB30 #30AFAB #AB30AF
tetradic
#AFAB30 #30AF6B #3034AF #AF3073
square
#AFAB30 #30AF6B #3034AF #AF3073
split-complementary
#AFAB30 #3073AF #6B30AF
monochromatic
#4F4D16 #7F7C23 #AFAB30 #CECA4E #DCD97E

Accessibility & contrast

On white

2.42
#AFAB30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AFAB30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB30
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB30#FFFFFF#000000##000000
##AFAB301.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A419
Deuteranopia (green-blind)
#BCA939
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab30;
/* rgb */ color: rgb(175, 171, 48);
/* oklch */ color: oklch(72.3% 0.139 107.5);
Tailwind
colors: {
  custom: {
    50: '#cac371',
    500: '#afab30',
    950: '#000000',
  },
}
SCSS
$custom: #afab30;
$custom-light: #cac371;
$custom-dark: #000000;
JSON
{
  "hex": "#afab30",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 48
  },
  "hsl": {
    "h": 58.11,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.72274,
    "c": 0.13904,
    "h": 107.5
  },
  "luminance": 0.38453
}

Semantic roles & 50–950 ramp

primary
#AFAB30
secondary
#7679C4
accent
#4CE048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB30

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

Preview Lab → · Contrast checker → · Palette generator →

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