#AFBE30#AFBE30

#AFBE30 is a light, vivid yellow. Relative luminance 0.462; OKLCH L 76.5% C 0.159 H 115.6°. Best body text is #000000 at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#AFBE30
RGBrgb(175, 190, 48)
HSLhsl(66, 60%, 47%)
HSVhsv(66, 75%, 75%)
CMYKcmyk(7.9%, 0%, 74.7%, 25.5%)
CIE-LABlab(73.65, -22.55, 65.01)
CIE-LCHlch(73.65, 68.81, 109.13°)
OKLaboklab(76.51% -0.0686 0.1432)
OKLCHoklch(76.51% 0.159 115.6)
XYZxyz(36.6272, 46.1549, 9.7750)
Luminance0.4615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE30 #3F30BE
analogous
#BE8630 #AFBE30 #68BE30
triadic
#AFBE30 #30AFBE #BE30AF
tetradic
#AFBE30 #30BE86 #3F30BE #BE3068
square
#AFBE30 #30BE86 #3F30BE #BE3068
split-complementary
#AFBE30 #3068BE #8630BE
monochromatic
#555C17 #828D24 #AFBE30 #C7D457 #D7E188

Accessibility & contrast

On white

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

On black

10.23
#AFBE30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBE30
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBE30#FFFFFF#000000##000000
##AFBE301.002.0510.2310.23
#FFFFFF2.051.0021.0021.00
#00000010.2321.001.001.00
##00000010.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB40F
Deuteranopia (green-blind)
#CAB63C
Tritanopia (blue-blind)
#BAB3A3
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #afbe30;
/* rgb */ color: rgb(175, 190, 48);
/* oklch */ color: oklch(76.5% 0.159 115.6);
Tailwind
colors: {
  custom: {
    50: '#cad173',
    500: '#afbe30',
    950: '#000000',
  },
}
SCSS
$custom: #afbe30;
$custom-light: #cad173;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe30",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 48
  },
  "hsl": {
    "h": 66.338,
    "s": 59.664,
    "l": 46.667
  },
  "oklch": {
    "l": 0.76509,
    "c": 0.15877,
    "h": 115.6
  },
  "luminance": 0.46154
}

Semantic roles & 50–950 ramp

primary
#AFBE30
secondary
#877FCB
accent
#45E356
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBE30

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

Preview Lab → · Contrast checker → · Palette generator →

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