#AFBE38#AFBE38

#AFBE38 is a light, vivid yellow. Relative luminance 0.462; OKLCH L 76.6% C 0.154 H 115.7°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#AFBE38
RGBrgb(175, 190, 56)
HSLhsl(67, 54%, 48%)
HSVhsv(67, 71%, 75%)
CMYKcmyk(7.9%, 0%, 70.5%, 25.5%)
CIE-LABlab(73.69, -22.16, 62.28)
CIE-LCHlch(73.69, 66.10, 109.58°)
OKLaboklab(76.56% -0.0668 0.1388)
OKLCHoklch(76.56% 0.154 115.7)
XYZxyz(36.8074, 46.2270, 10.7243)
Luminance0.4623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE38 #4738BE
analogous
#BE8A38 #AFBE38 #6CBE38
triadic
#AFBE38 #38AFBE #BE38AF
tetradic
#AFBE38 #38BE8A #4738BE #BE386C
square
#AFBE38 #38BE8A #4738BE #BE386C
split-complementary
#AFBE38 #386CBE #8A38BE
monochromatic
#585F1C #838F2A #AFBE38 #C4D162 #D6DF92

Accessibility & contrast

On white

2.05
#AFBE38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.25
#AFBE38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBE38
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBE38#FFFFFF#000000##000000
##AFBE381.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB421
Deuteranopia (green-blind)
#CAB643
Tritanopia (blue-blind)
#BAB3A4
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #afbe38;
/* rgb */ color: rgb(175, 190, 56);
/* oklch */ color: oklch(76.6% 0.154 115.7);
Tailwind
colors: {
  custom: {
    50: '#cad177',
    500: '#afbe38',
    950: '#000000',
  },
}
SCSS
$custom: #afbe38;
$custom-light: #cad177;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe38",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 56
  },
  "hsl": {
    "h": 66.716,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.76561,
    "c": 0.15402,
    "h": 115.7
  },
  "luminance": 0.46226
}

Semantic roles & 50–950 ramp

primary
#AFBE38
secondary
#8F88CA
accent
#4ADE5B
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBE38

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

Preview Lab → · Contrast checker → · Palette generator →

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