#AFB03F#AFB03F

#AFB03F is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.5% C 0.134 H 109.8°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#AFB03F
RGBrgb(175, 176, 63)
HSLhsl(61, 47%, 47%)
HSVhsv(61, 64%, 69%)
CMYKcmyk(0.6%, 0%, 64.2%, 31%)
CIE-LABlab(69.84, -14.71, 55.63)
CIE-LCHlch(69.84, 57.54, 104.81°)
OKLaboklab(73.49% -0.0453 0.1259)
OKLCHoklch(73.49% 0.134 109.8)
XYZxyz(34.1028, 40.5244, 10.7272)
Luminance0.4052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB03F #403FB0
analogous
#B0793F #AFB03F #77B03F
triadic
#AFB03F #3FAFB0 #B03FAF
tetradic
#AFB03F #3FB079 #403FB0 #B03F77
square
#AFB03F #3FB079 #403FB0 #B03F77
split-complementary
#AFB03F #3F77B0 #793FB0
monochromatic
#55561F #82832F #AFB03F #C7C865 #D7D892

Accessibility & contrast

On white

2.31
#AFB03F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.10
#AFB03F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB03F
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB03F#FFFFFF#000000##000000
##AFB03F1.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA930
Deuteranopia (green-blind)
#BFAC46
Tritanopia (blue-blind)
#BBA599
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb03f;
/* rgb */ color: rgb(175, 176, 63);
/* oklch */ color: oklch(73.5% 0.134 109.8);
Tailwind
colors: {
  custom: {
    50: '#cac77a',
    500: '#afb03f',
    950: '#000000',
  },
}
SCSS
$custom: #afb03f;
$custom-light: #cac77a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb03f",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 63
  },
  "hsl": {
    "h": 60.531,
    "s": 47.28,
    "l": 46.863
  },
  "oklch": {
    "l": 0.73494,
    "c": 0.1338,
    "h": 109.8
  },
  "luminance": 0.40524
}

Semantic roles & 50–950 ramp

primary
#AFB03F
secondary
#8888C3
accent
#51D752
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB03F

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

Preview Lab → · Contrast checker → · Palette generator →

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