#AFBC38#AFBC38

#AFBC38 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.1% C 0.152 H 115.0°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#AFBC38
RGBrgb(175, 188, 56)
HSLhsl(66, 54%, 48%)
HSVhsv(66, 70%, 74%)
CMYKcmyk(6.9%, 0%, 70.2%, 26.3%)
CIE-LABlab(73.13, -21.17, 61.73)
CIE-LCHlch(73.13, 65.26, 108.93°)
OKLaboklab(76.11% -0.064 0.1376)
OKLCHoklch(76.11% 0.152 115)
XYZxyz(36.3772, 45.3665, 10.5809)
Luminance0.4537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC38 #4538BC
analogous
#BC8738 #AFBC38 #6DBC38
triadic
#AFBC38 #38AFBC #BC38AF
tetradic
#AFBC38 #38BC87 #4538BC #BC386D
square
#AFBC38 #38BC87 #4538BC #BC386D
split-complementary
#AFBC38 #386DBC #8738BC
monochromatic
#575E1C #838D2A #AFBC38 #C5D061 #D6DE90

Accessibility & contrast

On white

2.08
#AFBC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#AFBC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC38
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC38#FFFFFF#000000##000000
##AFBC381.002.0810.0710.07
#FFFFFF2.081.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B322
Deuteranopia (green-blind)
#C9B542
Tritanopia (blue-blind)
#BAB1A2
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbc38;
/* rgb */ color: rgb(175, 188, 56);
/* oklch */ color: oklch(76.1% 0.152 115.0);
Tailwind
colors: {
  custom: {
    50: '#cad077',
    500: '#afbc38',
    950: '#000000',
  },
}
SCSS
$custom: #afbc38;
$custom-light: #cad077;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc38",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 56
  },
  "hsl": {
    "h": 65.909,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.76112,
    "c": 0.1518,
    "h": 115
  },
  "luminance": 0.45366
}

Semantic roles & 50–950 ramp

primary
#AFBC38
secondary
#8D87C9
accent
#4ADD59
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBC38

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

Preview Lab → · Contrast checker → · Palette generator →

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