#AFC038#AFC038

#AFC038 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.0% C 0.156 H 116.4°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#AFC038
RGBrgb(175, 192, 56)
HSLhsl(68, 55%, 49%)
HSVhsv(68, 71%, 75%)
CMYKcmyk(8.9%, 0%, 70.8%, 24.7%)
CIE-LABlab(74.25, -23.14, 62.83)
CIE-LCHlch(74.25, 66.96, 110.22°)
OKLaboklab(77.01% -0.0695 0.14)
OKLCHoklch(77.01% 0.156 116.4)
XYZxyz(37.2436, 47.0993, 10.8697)
Luminance0.4710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC038 #4938C0
analogous
#C08D38 #AFC038 #6BC038
triadic
#AFC038 #38AFC0 #C038AF
tetradic
#AFC038 #38C08D #4938C0 #C0386B
square
#AFC038 #38C08D #4938C0 #C0386B
split-complementary
#AFC038 #386BC0 #8D38C0
monochromatic
#59611C #84912A #AFC038 #C4D264 #D6DF93

Accessibility & contrast

On white

2.02
#AFC038 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.42
#AFC038 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC038
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC038#FFFFFF#000000##000000
##AFC0381.002.0210.4210.42
#FFFFFF2.021.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB620
Deuteranopia (green-blind)
#CCB843
Tritanopia (blue-blind)
#BAB5A5
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc038;
/* rgb */ color: rgb(175, 192, 56);
/* oklch */ color: oklch(77.0% 0.156 116.4);
Tailwind
colors: {
  custom: {
    50: '#cad277',
    500: '#afc038',
    950: '#000000',
  },
}
SCSS
$custom: #afc038;
$custom-light: #cad277;
$custom-dark: #000000;
JSON
{
  "hex": "#afc038",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 56
  },
  "hsl": {
    "h": 67.5,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.77011,
    "c": 0.15627,
    "h": 116.4
  },
  "luminance": 0.47099
}

Semantic roles & 50–950 ramp

primary
#AFC038
secondary
#9189CB
accent
#4ADE5C
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC038

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

Preview Lab → · Contrast checker → · Palette generator →

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