#AFBB38#AFBB38

#AFBB38 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 75.9% C 0.151 H 114.6°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#AFBB38
RGBrgb(175, 187, 56)
HSLhsl(65, 54%, 48%)
HSVhsv(65, 70%, 73%)
CMYKcmyk(6.4%, 0%, 70.1%, 26.7%)
CIE-LABlab(72.85, -20.67, 61.45)
CIE-LCHlch(72.85, 64.84, 108.59°)
OKLaboklab(75.89% -0.0627 0.1371)
OKLCHoklch(75.89% 0.151 114.6)
XYZxyz(36.1643, 44.9408, 10.5100)
Luminance0.4494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB38 #4438BB
analogous
#BB8538 #AFBB38 #6EBB38
triadic
#AFBB38 #38AFBB #BB38AF
tetradic
#AFBB38 #38BB85 #4438BB #BB386E
square
#AFBB38 #38BB85 #4438BB #BB386E
split-complementary
#AFBB38 #386EBB #8538BB
monochromatic
#575D1C #838C2A #AFBB38 #C5D061 #D7DE90

Accessibility & contrast

On white

2.10
#AFBB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.99
#AFBB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB38
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB38#FFFFFF#000000##000000
##AFBB381.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B222
Deuteranopia (green-blind)
#C8B442
Tritanopia (blue-blind)
#BAB0A1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbb38;
/* rgb */ color: rgb(175, 187, 56);
/* oklch */ color: oklch(75.9% 0.151 114.6);
Tailwind
colors: {
  custom: {
    50: '#cacf77',
    500: '#afbb38',
    950: '#000000',
  },
}
SCSS
$custom: #afbb38;
$custom-light: #cacf77;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb38",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 56
  },
  "hsl": {
    "h": 65.496,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.75888,
    "c": 0.15069,
    "h": 114.6
  },
  "luminance": 0.4494
}

Semantic roles & 50–950 ramp

primary
#AFBB38
secondary
#8C86C8
accent
#4BDD58
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBB38

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

Preview Lab → · Contrast checker → · Palette generator →

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