#AFC334#AFC334

#AFC334 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 77.7% C 0.162 H 117.4°. Best body text is #000000 at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#AFC334
RGBrgb(175, 195, 52)
HSLhsl(68, 58%, 48%)
HSVhsv(68, 73%, 76%)
CMYKcmyk(10.3%, 0%, 73.3%, 23.5%)
CIE-LABlab(75.07, -24.81, 65.02)
CIE-LCHlch(75.07, 69.60, 110.88°)
OKLaboklab(77.66% -0.0745 0.1439)
OKLCHoklch(77.66% 0.162 117.4)
XYZxyz(37.8150, 48.3925, 10.5968)
Luminance0.4839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC334 #4834C3
analogous
#C38F34 #AFC334 #67C334
triadic
#AFC334 #34AFC3 #C334AF
tetradic
#AFC334 #34C38F #4834C3 #C33467
square
#AFC334 #34C38F #4834C3 #C33467
split-complementary
#AFC334 #3467C3 #8F34C3
monochromatic
#58621A #849327 #AFC334 #C4D560 #D6E190

Accessibility & contrast

On white

1.97
#AFC334 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.68
#AFC334 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC334
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC334#FFFFFF#000000##000000
##AFC3341.001.9710.6810.68
#FFFFFF1.971.0021.0021.00
#00000010.6821.001.001.00
##00000010.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B816
Deuteranopia (green-blind)
#CEBA40
Tritanopia (blue-blind)
#BAB8A8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #afc334;
/* rgb */ color: rgb(175, 195, 52);
/* oklch */ color: oklch(77.7% 0.162 117.4);
Tailwind
colors: {
  custom: {
    50: '#cad576',
    500: '#afc334',
    950: '#000000',
  },
}
SCSS
$custom: #afc334;
$custom-light: #cad576;
$custom-dark: #000000;
JSON
{
  "hex": "#afc334",
  "rgb": {
    "r": 175,
    "g": 195,
    "b": 52
  },
  "hsl": {
    "h": 68.392,
    "s": 57.895,
    "l": 48.431
  },
  "oklch": {
    "l": 0.77661,
    "c": 0.16205,
    "h": 117.4
  },
  "luminance": 0.48392
}

Semantic roles & 50–950 ramp

primary
#AFC334
secondary
#9087CC
accent
#47E15C
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC334

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

Preview Lab → · Contrast checker → · Palette generator →

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