#AFB038#AFB038

#AFB038 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.4% C 0.139 H 109.9°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#AFB038
RGBrgb(175, 176, 56)
HSLhsl(61, 52%, 45%)
HSVhsv(61, 68%, 69%)
CMYKcmyk(0.6%, 0%, 68.2%, 31%)
CIE-LABlab(69.79, -15.13, 58.40)
CIE-LCHlch(69.79, 60.33, 104.52°)
OKLaboklab(73.44% -0.0472 0.1306)
OKLCHoklch(73.44% 0.139 109.9)
XYZxyz(33.9195, 40.4511, 9.7617)
Luminance0.4045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB038 #3938B0
analogous
#B07538 #AFB038 #73B038
triadic
#AFB038 #38AFB0 #B038AF
tetradic
#AFB038 #38B075 #3938B0 #B03873
square
#AFB038 #38B075 #3938B0 #B03873
split-complementary
#AFB038 #3873B0 #7538B0
monochromatic
#53531A #818229 #AFB038 #CACB5B #D9D989

Accessibility & contrast

On white

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

On black

9.09
#AFB038 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB038
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB038#FFFFFF#000000##000000
##AFB0381.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA926
Deuteranopia (green-blind)
#BFAC40
Tritanopia (blue-blind)
#BBA598
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb038;
/* rgb */ color: rgb(175, 176, 56);
/* oklch */ color: oklch(73.4% 0.139 109.9);
Tailwind
colors: {
  custom: {
    50: '#cac776',
    500: '#afb038',
    950: '#000000',
  },
}
SCSS
$custom: #afb038;
$custom-light: #cac776;
$custom-dark: #000000;
JSON
{
  "hex": "#afb038",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 56
  },
  "hsl": {
    "h": 60.5,
    "s": 51.724,
    "l": 45.49
  },
  "oklch": {
    "l": 0.73436,
    "c": 0.13888,
    "h": 109.9
  },
  "luminance": 0.4045
}

Semantic roles & 50–950 ramp

primary
#AFB038
secondary
#8180C4
accent
#4DDB4E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB038

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

Preview Lab → · Contrast checker → · Palette generator →

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